timeline.add_transitions
Add the SAME transition to several clips in ONE call (and one undo step) — prefer this over repeated timeline.add_transition when joining a run of clips. Select the clips with exactly one of itemIds, trackId (every clip on a track) or all:true (every clip on every track; trackType limits to video/audio) — to crossfade the whole film use all:true with trackType 'video', do NOT list ids or make one call per join. kind crossfade/smooth_blend: adds one between every pair of the selected clips that are neighbours on their track (a chain of N clips gets N-1 transitions; the clips must be back-to-back, close gaps first with timeline.close_gaps). Each incoming clip shifts durationMs earlier, together with any clips chained after it, so the total sequence shortens by durationMs per join. kind fade_from_black / fade_to_black: adds that fade to each selected clip. Pairs/clips that can't take it (already has one, gap, too short) are skipped and reported in skipped + warnings; the call only fails if nothing at all could be added.
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": {
"projectId": "<projectId>",
"expectedVersion": "<expectedVersion>",
"kind": "<kind>",
"durationMs": "<durationMs>"
},
"name": "timeline.add_transitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Every clip on every track — narrow with trackType | |
| kind | Yes | ||
| itemIds | No | These specific clips | |
| trackId | No | Every clip on this track | |
| projectId | Yes | ||
| trackType | No | With all: only tracks of this type | |
| durationMs | Yes | ||
| expectedVersion | Yes |