Trim a clip
trimCut a segment from a video or audio file by start time and end time or duration; stream copy by default, or enable re-encoding for frame-accurate cuts.
Instructions
Cut a segment from a video/audio file between a start time and either an end time or a duration. By default copies streams without re-encoding (fast, lossless); set reencode=true for frame-accurate cuts.
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": "<start>"
},
"name": "trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End time (mutually exclusive with duration). | |
| input | Yes | Path to the source media file. | |
| start | Yes | Start time. Seconds or timecode. | |
| output | Yes | Path for the trimmed output file. | |
| duration | No | Length of the segment (mutually exclusive with end). | |
| reencode | No | Re-encode for frame-accurate cuts instead of stream copy. | |
| overwrite | No | Overwrite the output file if it already exists. |