merge_videos
Concatenates two or more rendered MP4 clips in order, shifting matching SRT/VTT subtitles, and writes a single output video with fail-closed validation.
Instructions
Concatenate two or more rendered videos from out/.mp4 (along with their shifted .srt and .vtt subtitles when present) into out/<out_slug>.mp4 via FFmpeg. Fails closed if any input MP4 is missing, slugs are invalid, FFmpeg is missing, or out/<out_slug>.mp4 exists and overwrite=false.
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": {
"out_slug": "<out_slug>",
"clip_slugs": "<clip_slugs>"
},
"name": "merge_videos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out_slug | Yes | Output slug for out/<out_slug>.mp4 (lowercase letters, digits, _ or -) | |
| overwrite | No | Allow replacing an existing out/<out_slug>.mp4 (default false refuses) | |
| clip_slugs | Yes | Ordered list of 2 or more existing video slugs in out/ to concatenate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| mp4 | Yes | ||
| bytes | Yes | ||
| clips | Yes | ||
| out_slug | Yes |