Replace a transition with another
replace_transitionSwap an existing transition on a clip edge for a different one by index or time, keeping alignment and duration unless set; restores the original if the swap fails.
Instructions
Swap an existing transition for a different one (e.g. Cross Dissolve -> Dip to Black) on the same clip edge, chosen by transition_index or time. Keeps its alignment (an "offset" alignment becomes "center") and, unless duration is given, its duration. The old transition's Effect Controls settings are not carried over. If adding the new one fails, the original is put back. Returns {before, 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": {
"track_type": "<track_type>",
"track_index": "<track_index>",
"name": "<name>"
},
"name": "replace_transition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact name of the new transition, case-insensitive, of the track's type (see list_video_transitions / list_audio_transitions). | |
| time | No | Used when transition_index is not given: a sequence time in seconds inside the transition. | |
| duration | No | New duration in seconds, up to 60. Default: keep the current one. | |
| 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. | |
| transition_index | No | 0-based index of the transition on the track, in time order (from list_track_transitions). |