chroma_key
Remove a solid color background from a video clip by masking the specified RGB value, enabling green screen compositing.
Instructions
Mask a color in a video clip (chroma key / green screen).
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": {
"clip_id": "<clip_id>",
"color_rgb": "<color_rgb>"
},
"name": "chroma_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_id | Yes | The video or image clip. | |
| color_rgb | Yes | The color to mask out as [R, G, B], e.g. [0, 255, 0] for green. | |
| stiffness | No | Edge sharpness. Higher = harder edges; lower = softer. MoviePy default is 1.0. | |
| threshold | No | Euclidean RGB distance tolerance. 0 = exact color only; try 20–100 for typical green-screen spill. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||