Combine clips into a finished video
combine_clips[writes flayr data · write scope] Extends a video draft (id) with more clips and image cards into ONE finished video, rendered by flayr and saved as a NEW linked draft (same brand, caption copied, credits merged, labelled variant:combined). Nothing is posted and the original is unchanged. Use it to show a finished print with painting/assembly clips before or after it. segments (2-8, in order) must include the video itself as { kind: "clip", contentId: id }; clips are Library videos (contentId) or uploads (storageId from upload_media) with inMs/outMs (or durationMs = the clip's full length); cards are images (contentId of a Library image or video thumbnail, or imageStorageId) with durationMs and optional text. transition cut|crossfade, audio keep|mute_extras|main_across. Max 60 min by default (long-form: cold open + trimmed recording + bumpers). Costs 25 Embers per started minute of output for the first 3 min, then 5 per further started minute by default (refunded on failure). Returns a jobId — poll get_job_status.
(Wraps POST /api/v2/content/{id}/combine.)
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": {
"id": "<id>",
"segments": "<segments>"
},
"name": "combine_clips"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The video to extend. | |
| audio | No | keep | |
| segments | Yes | In playback order. Must include this video ({ "kind": "clip", "contentId": "<id>" }). | |
| transition | No | cut | |
| crossfadeMs | No | Crossfade overlap per join. |