Crop Video
cropExtract a pixel rectangle from a video and reject coordinates that run off the frame; set x, y, width, and height to define the visible region.
Instructions
Crop a video to a pixel rectangle; one running off the frame is rejected.
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": "<input>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| input | Yes | Path to the source video. | |
| width | Yes | ||
| height | Yes | ||
| output | No | Optional output path. Defaults under SCREENCAST_HOME/edits. | |
| overwrite | No | Allow replacing an existing file at the output path (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputPath | Yes | Path of the file written. |