Concatenate clips
concatCombine two or more clips into one file, preserving quality when codecs, resolution, and frame rate match, or automatically normalizing and re-encoding mismatched clips.
Instructions
Join two or more clips end to end into a single file.
When every clip already shares a codec, resolution and frame rate, this remuxes with no re-encoding. Otherwise the clips are normalised first — scaled and padded to a common resolution, resampled to a common frame rate and audio layout — and then concatenated, which requires a re-encode.
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": {
"input_paths": "<input_paths>"
},
"name": "concat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encode | No | ||
| target_fps | No | Force a common frame rate. | |
| input_paths | Yes | Clips to join, in order. | |
| output_path | No | Destination file; defaults to the job workspace. | |
| target_resolution | No | Force all clips to this size, e.g. '1920x1080'. Defaults to the first clip's resolution when the clips differ. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| job_id | Yes | ||
| status | No | queued | |
| message | No | Job queued. Poll job_status for progress, then job_result. |