timeline.add_transition
Add a transition (§4.1: crossfade, smooth_blend, fade_from_black, or fade_to_black — a hard cut needs no call at all, it's just the default). crossfade and smooth_blend require fromItemId and toItemId to be two contiguous, back-to-back clips on the same track, and shift toItemId durationMs earlier so the overlap uses only content the clips already have (no source 'handle' footage needed) — this shortens the sequence by durationMs, exactly like a real NLE. smooth_blend is the least noticeable join: the same overlap as crossfade, but eased (cosine) at both ends so the blend has no perceptible start or end; prefer it when the goal is for the viewer not to notice the transition. fade_from_black/fade_to_black only need fromItemId (the clip being faded) and apply within its own bounds.
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>",
"trackId": "<trackId>",
"kind": "<kind>",
"durationMs": "<durationMs>",
"fromItemId": "<fromItemId>"
},
"name": "timeline.add_transition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| trackId | Yes | ||
| toItemId | No | ||
| projectId | Yes | ||
| durationMs | Yes | ||
| fromItemId | Yes | ||
| expectedVersion | Yes |