Trim Video
trimCut a video down to one sub-clip using a start time plus an end time or duration, so you can isolate a specific segment for review or export.
Instructions
Cut a video down to one sub-clip by start + (end or duration). For several segments use clip; to combine with other edits use pipeline.
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>",
"start": "<start>"
},
"name": "trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End time in seconds. Use end OR duration. | |
| exact | No | Re-encode for a frame-exact cut with the removed content really gone (default true). false = fast stream copy that snaps to a keyframe and keeps hidden earlier frames; never use it to remove secrets. | |
| input | Yes | Path to the source video. | |
| start | Yes | Start time in seconds. | |
| output | No | Optional output path. Defaults under SCREENCAST_HOME/edits. | |
| duration | No | Clip length in seconds. Use end OR duration. | |
| overwrite | No | Allow replacing an existing file at the output path (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputPath | Yes | Path of the file written. |