Set clip start and end
set_clip_boundsTrim both timeline edges of a clip by setting new start and end times in seconds. Source media stays in sync, neighbouring clips stay put, and linked audio or video can follow.
Instructions
Set both timeline edges of a clip: start and end in seconds. Each edge is trimmed (the picture does not shift in time: the source in/out follow the edges), neighbours do not move. An edge stops at the neighbouring clip and at the limits of the source media, so check the returned start and end. To move a clip without trimming use move_clip. include_linked (default true) applies the same edges to the linked audio/video clips. Returns the 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": {
"start": "<start>",
"end": "<end>"
},
"name": "set_clip_bounds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | New timeline end, in seconds. Must be after start. | |
| start | Yes | New timeline start, in seconds. | |
| 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. |