trim_video
Cut out a video segment from a start to an end timestamp. Accepts seconds or MM:SS/HH:MM:SS, snaps to nearest keyframe, and stream-copies without re-encoding.
Instructions
Cut a segment out of a video (start to end). Timestamps accept seconds ("90"), "MM:SS" or "HH:MM:SS". Cut points snap to the nearest keyframe (stream copy, no re-encode).
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": {
"video_path": "<video_path>",
"start": "<start>",
"end": "<end>"
},
"name": "trim_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End timestamp — must be after start | |
| start | Yes | Start timestamp, e.g. "5", "1:30", "00:01:30" | |
| video_path | Yes | Local path to the video |