Video Reframe
video_reframeCrops a video to a target aspect ratio (e.g. "9:16" vertical, "1:1" square, "4:5") around a focus point — for social clips. Takes the LARGEST crop of that aspect that fits, centered on focus (x,y in source pixels, top-left origin; default = center) and clamped to the frame. Audio passes through. Returns the output path + new dimensions.
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>",
"aspect": "<aspect>"
},
"name": "video_reframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focus | No | {x,y} center of interest in source pixels (top-left). Default: frame center. | |
| input | Yes | Path to the source video file. | |
| aspect | Yes | Target aspect "W:H", e.g. 9:16, 1:1, 4:5, 16:9. | |
| output | No | Default: <input>_<aspect>.mov. Missing parent folders are created. | |
| confirm | No | Ignored; kept for older clients. | |
| overwrite | No | Replace an existing file at output. Without it an existing output is refused. The input is never overwritten. |