Draw box
draw_boxDraw a rectangle outline or filled box on a video to highlight or redact a region, with optional start and end times for visibility.
Instructions
Draw a rectangle outline (or filled box) on the video — for highlighting or redacting a region. Optionally limited to a time range.
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": {
"input_path": "<input_path>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "draw_box"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Left edge of the box, in pixels | |
| y | Yes | Top edge of the box, in pixels | |
| end | No | Hide the box after this time | |
| fill | No | Fill the box solid instead of an outline (default false) | |
| color | No | Box color, e.g. red, yellow, #00ff00, black@0.6 (default red) | |
| start | No | Show the box starting at this time | |
| width | Yes | Box width in pixels | |
| height | Yes | Box height in pixels | |
| thickness | No | Line thickness in pixels; omit for outline default 4 | |
| input_path | Yes | Path to the source video | |
| output_path | No | Where to write the result |