Add video transition to a clip
add_video_transitionAdds a video transition to a clip’s start, end, or both edges, joining adjacent clips at a cut or creating a single-sided fade when no neighbor exists.
Instructions
Add a video transition at the start, end or both edges of one video clip. If the edge touches an adjacent clip the transition joins the two clips (aligned per alignment); otherwise it is single-sided inside the clip (a fade from/to nothing). A clip on a audio track fails with BAD_ARGS; a clip too short for the duration fails with FAILED. Use add_transition_at_cut to target a cut by time, add_transitions_to_all_cuts for a whole track. Names come from list_video_transitions. Returns {clip, added: [transition...], skipped: [...]}. 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
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": "add_video_transition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact transition name, case-insensitive, e.g. "Cross Dissolve", "Dip to Black", "Film Dissolve". Default "Cross Dissolve". | |
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| duration | No | Transition duration in seconds, up to 60. Default 1. Snapped to whole frames. | |
| position | No | Which edge of the clip: "start" (in edge), "end" (out edge, default) or "both". | |
| 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. | |
| 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. | |
| 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. |