crop_video
Crop a video to a specified rectangular region by setting width, height, and optional x/y offsets, saving the result to a new file.
Instructions
Crop a video to a rectangular region.
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>",
"output_path": "<output_path>",
"width": "<width>",
"height": "<height>"
},
"name": "crop_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Left offset of the crop region in pixels | |
| y | No | Top offset of the crop region in pixels | |
| width | Yes | Crop width in pixels | |
| height | Yes | Crop height in pixels | |
| input_path | Yes | Source video path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. | |
| output_path | Yes | Destination path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. |