trim_video
Cut a video segment by specifying a start time and either an end time or duration, saving the result to an output path.
Instructions
Cut a clip out of a video between a start time and either an end time or a duration (seconds).
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>",
"output_path": "<output_path>"
},
"name": "trim_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Duration of the clip in seconds (use this or end_time, not both) | |
| end_time | No | End time in seconds (use this or duration, not both) | |
| input_path | Yes | Source video path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. | |
| start_time | No | Start time in seconds | |
| output_path | Yes | Destination path for the trimmed clip. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. |