resize
Change a video's resolution by setting target width and height, using -1 for either value to preserve the aspect ratio automatically.
Instructions
Change video resolution/scale. Specify width and height (-1 for auto aspect ratio).
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>",
"width": "<width>",
"height": "<height>"
},
"name": "resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codec | No | Video codec | libx264 |
| input | Yes | Input video file path | |
| width | Yes | Target width (-1 for auto based on height) | |
| height | Yes | Target height (-1 for auto based on width) | |
| output | No | Output file path |