Add transition at a cut
add_transition_at_cutFinds the nearest cut within tolerance on a Premiere Pro track and places a transition there, centered by default, with optional alignment, duration, and replacement.
Instructions
Find the cut (one clip ending exactly where the next starts) nearest to a time on a track, within tolerance, and put a transition there (centred by default). Fails with NOT_FOUND when no cut is within tolerance. Use list_cuts to see the cuts, add_video_transition / add_audio_transition for a clip edge without a neighbour. Returns {cut_time, skipped, transition, replaced}. Each transition is {track_type, track_index, transition_index, transition_id, name, match_name, start, end, duration, cut_time, alignment, edge, from_clip, to_clip}: times in seconds of sequence time; edge is "cut" (between two adjacent clips), "clip_start" or "clip_end" (single-sided); alignment is center / start_at_cut / end_at_cut / offset for cuts; from_clip / to_clip are {clip_id, name, clip_index, start, end} of the outgoing / incoming clip (null on the missing side).
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": {
"track_type": "<track_type>",
"track_index": "<track_index>",
"time": "<time>"
},
"name": "add_transition_at_cut"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact transition name, case-insensitive, of the track's type. Default "Cross Dissolve" on a video track, "Constant Power" on an audio track. | |
| time | Yes | Sequence time near the cut, in seconds. | |
| duration | No | Transition duration in seconds, up to 60. Default 1. Snapped to whole frames. | |
| alignment | No | Where the transition sits on a cut: "center" (default; half before, half after the cut), "start_at_cut" (begins at the cut and plays over the incoming clip) or "end_at_cut" (ends at the cut and plays over the outgoing clip). At a clip edge with no adjacent clip the transition is single-sided and lies inside the clip whatever the alignment. | |
| tolerance | No | How far from time the cut may be, in seconds. Default 1. | |
| track_type | Yes | Track type: "video" or "audio". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | Yes | 0-based track index (0 = V1 or A1). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| replace_existing | No | If a transition already sits on that edge or cut: true (default) replaces it, false leaves it and reports the edge as skipped. |