Crop video
crop_videoCrop a video to a rectangular region by specifying the top-left corner (x, y) and dimensions (width, height). Removes all content outside the selected area.
Instructions
Crop a rectangular region out of the video frame. x/y is the top-left corner of the region to keep.
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": "crop_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Left edge of the crop region, in pixels | |
| y | Yes | Top edge of the crop region, in pixels | |
| width | Yes | Width of the crop region, in pixels | |
| height | Yes | Height of the crop region, in pixels | |
| input_path | Yes | Path to the source video | |
| output_path | No | Where to write the result |