video_trim
Cut a segment from a video by start time and duration or end, and return JSON with success and output_path for the rendered clip.
Instructions
Cut a segment out of a video by start time and duration or end. Returns JSON {success, output_path} pointing at the rendered clip.
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>"
},
"name": "video_trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End timestamp. Exclusive with duration. | |
| start | No | Start timestamp (e.g. '00:02:15') or numeric seconds (e.g. 10.5). | 0 |
| review | No | Also write a review card for the result (default). Reply with the returned preview_directive alone on its own line so Hermes Desktop shows it. | |
| accurate | No | Ignored: trims re-encode, so they are always frame-accurate. | |
| duration | No | Duration to keep (e.g. '00:00:30' or '30'). Exclusive with end. | |
| overwrite | No | Allow replacing existing media files. | |
| input_path | Yes | Absolute path to the input video. | |
| output_path | No | Where to save the trimmed video. Auto-generated if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||