Trim clip end
trim_clip_endTrim or extend a clip's end while keeping its start fixed, optionally updating linked clips and ripple-shifting later clips to avoid gaps or overlaps.
Instructions
Move the tail (right edge) of a clip while its start stays where it is; the source out point changes with it. Pass time (new timeline end, seconds) or delta (seconds; negative trims material off, positive extends). Without ripple neighbouring clips do not move and the clip stops growing at the next clip. With ripple=true everything that starts at or after the clip's old end, on all tracks, shifts by the change so the sequence stays in sync (a track where that would make clips collide is left alone and listed in tracks_not_rippled). Extending always stops at the end of the source media. include_linked (default true) trims the linked audio/video clips the same way. Returns the trimmed clip with its real new end.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "trim_clip_end"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | New timeline end of the clip, in seconds. | |
| delta | No | Change of the end in seconds; negative makes the clip shorter. | |
| ripple | No | Shift all later clips on every track by the change so no gap or overlap appears. Default false. | |
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| clip_index | No | 0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id. | |
| track_type | No | Used with track_index + clip_index when clip_id is not given. Default "video". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | 0-based track index (0 = V1 or A1). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| include_linked | No | Also trim the clips linked to this one (the audio of a video clip, or the video of an audio clip). Default true. |