trim_clip
Trim or extend a clip's timeline edges by setting new start and end times; source media and linked clips adjust, leaving gaps to close with ripple tools.
Instructions
Trim a clip's edges on the timeline: newStart trims/extends the head, newEnd the tail (source media follows). Linked clips are trimmed too. Leaves gaps; use close_gaps or ripple_delete_range to close them.
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": {
"trackType": "<trackType>",
"trackIndex": "<trackIndex>",
"clipIndex": "<clipIndex>"
},
"name": "trim_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newEnd | No | New timeline end, seconds | |
| newStart | No | New timeline start, seconds | |
| clipIndex | Yes | Clip index on the track, 0-based from the left (see get_timeline_clips) | |
| trackType | Yes | Track type | |
| trackIndex | Yes | Track index, 0-based (V1 = 0, A1 = 0) | |
| includeLinked | No |