Set clip source in/out
set_clip_in_outSet a timeline clip's source in and out points in seconds to choose which part of the media plays; the clip start stays fixed and duration becomes source_out minus source_in.
Instructions
Choose which part of the source a timeline clip plays: source_in and/or source_out in seconds from the media start. The clip's timeline start stays put and its duration becomes source_out - source_in, so the end moves (later clips are not shifted). To keep the duration and only change the content use slip_clip. Linked clips are not changed. Returns the clip.
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": "set_clip_in_out"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| source_in | No | New source in point, seconds from the media start. | |
| 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. | |
| source_out | No | New source out point, seconds from the media start. | |
| 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. |