resize_video
Resize a video to desired width and height, with optional aspect ratio locking.
Instructions
调整视频分辨率
Args:
input_path: 输入视频文件路径
width: 目标宽度
height: 目标高度
output_path: 输出视频文件路径(可选)
keep_aspect_ratio: 是否保持宽高比
Returns:
调整结果信息
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>",
"width": "<width>",
"height": "<height>"
},
"name": "resize_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| width | Yes | ||
| height | Yes | ||
| output_path | No | ||
| keep_aspect_ratio | No |