Compress video
compress_videoShrink video file size by compressing. Optionally set a target size in MB for bitrate-based compression.
Instructions
Shrink a video's file size. Give a target size in MB (bitrate is computed from the duration) or omit it for a general-purpose quality-based compression.
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>"
},
"name": "compress_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Path to the source video | |
| output_path | No | Where to write the result | |
| target_size_mb | No | Approximate target file size in MB |