Generate a colour matte file
generate_color_matte_fileCreate solid-color still images (.png/.jpg/.tif) or silent videos (.mp4/.mov) for backgrounds, slugs, and placeholders when a media file is needed.
Instructions
Create a solid-colour media file to import: a still image (.png, .jpg, .tif) or a video of a given length (.mp4, .mov), chosen by the extension of output_path. Use it for backgrounds, slugs and placeholders when a file is needed. The video has no audio stream. Returns the new file's size, frame size, color and, for video, duration and fps. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"output_path": "<output_path>"
},
"name": "generate_color_matte_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frame rate of the video in frames per second (video outputs only). Default 30. | |
| color | No | Colour as "#rrggbb" (also "#rgb") or [r, g, b] with 0-255 each. Default "#000000" (black). | |
| width | No | Frame width in pixels (even for video). Default 1920. | |
| height | No | Frame height in pixels (even for video). Default 1080. | |
| duration | No | Length of the video in seconds (video outputs only). Default 5. | |
| overwrite | No | Replace output_path if it already exists. Default false: an existing file makes the tool fail with FILE_EXISTS. | |
| output_path | Yes | Absolute path of the file to write: .png, .jpg, .jpeg, .tif, .tiff or .bmp for a still; .mp4 or .mov for a video. | |
| timeout_seconds | No | Stop ffmpeg and fail with TIMEOUT after this many seconds. Default 300. |