Insert clip (ripple)
insert_clipInserts a project item into a sequence at a specified time and pushes later clips on all tracks to keep the timeline in sync.
Instructions
Insert a project item into a sequence at a time and push everything from that time onwards later by the item's length, on ALL tracks (clips that span the time are cut there), so the whole sequence stays in sync. With ripple_all_tracks=false only the tracks that receive material are pushed (what Premiere's scripting insert does natively). Picture goes to video_track_index and the item's audio, linked to it, to audio_track_index. Optionally use only part of the source (source_in / source_out, seconds of source time). Use overwrite_clip to replace what is there without shifting, place_clip_on_track to touch exactly one track, append_clip to add at the end. Returns the clips that were created (video and linked audio) and the sequence duration before and after.
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": {
"time": "<time>"
},
"name": "insert_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | Yes | Timeline position of the insert, in seconds. Snapped to a frame. | |
| item_id | No | Stable project item id (from list_project_items). Preferred. | |
| item_name | No | Item name; the first match in the project is used. | |
| item_path | No | Path in the Project panel, e.g. "Footage/Day 1/clip.mp4". | |
| source_in | No | Start of the part of the source to use, in seconds from the media start. Default: the item's current in point (normally 0). | |
| source_out | No | End of the part of the source to use, in seconds from the media start. Default: the item's current out point (normally the media end; the default still duration for a still). | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| audio_track_index | No | 0-based audio track that receives the item's audio (0 = A1). Default 0. | |
| ripple_all_tracks | No | Push the later clips of every track (default true). false pushes only the tracks that receive material. | |
| video_track_index | No | 0-based video track that receives the picture (0 = V1). Default 0. |