trim
Cuts a video segment using start time and duration. Prefers stream copy for fast processing, then falls back to encoding to ensure accurate keyframe-aligned cuts.
Instructions
Trim video. Auto attempts stream copy, then falls back to encoding; copy is keyframe-aligned.
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>",
"duration": "<duration>"
},
"name": "trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| input | Yes | ||
| start | Yes | ||
| output | Yes | ||
| duration | Yes |