Trim clip
trim_clip[write] Trim a clip's source window. Clamped to the media and a 300ms minimum. It sets the source in-point and/or the length on the timeline, and optionally the start. Use to cut the head or tail off a take. Not for cutting a clip in two (use split_clip) or closing the gap a trim leaves (use close_gap or ripple_timeline). Returns the changed clips' rows (with handles) and counts. Related: get_timeline, split_clip, close_gap.
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": {
"project_id": "<project_id>"
},
"name": "trim_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | get_timeline handle. | |
| items | No | Many clips at once, max 60, each with this tool's fields. | |
| startMs | No | Timeline start, ms. | |
| durationMs | No | Timeline length, ms. | |
| project_id | Yes | The AskEditor project this acts on (from list_projects). | |
| clipStartMs | No | In-point into the source, ms. |