trim_video
Cut a section from a local video and export it as an MP4 with H.264 video and AAC audio; existing files are never overwritten.
Instructions
Cut a section from a video and export it as MP4 (H.264 video and AAC audio). Existing files are never overwritten.
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>",
"output": "<output>",
"start_seconds": "<start_seconds>",
"duration_seconds": "<duration_seconds>"
},
"name": "trim_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the source video | |
| output | Yes | Path for the new MP4 file | |
| start_seconds | Yes | Start position in seconds | |
| duration_seconds | Yes | Length of the clip in seconds |