Insert clip
insert_clipPlace a bin clip on a timeline track at a specified frame, optionally trimming to a source range and attaching audio to a paired track; writes result to destination without overwriting overlaps.
Instructions
Place a bin clip (bin_id from list_project_media / get_timeline) on a track at frame start, optionally a source sub-range [source_in, source_out] (inclusive). A clip with audio and video put on a video track also gets its audio on audio_track (default A1; null for video only), grouped like Kdenlive. Positions are frames at the project rate; nothing ripples and nothing is overwritten (overlaps fail). A clip grouped with its audio/video counterpart is edited together with it. The result is written to destination with the save_project_copy rules.
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": {
"path": "<path>",
"bin_id": "<bin_id>",
"track": "<track>",
"start": "<start>",
"destination": "<destination>"
},
"name": "insert_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of a .kdenlive project file on this machine. | |
| start | Yes | ||
| track | Yes | Track label, e.g. V1. | |
| bin_id | Yes | ||
| sequence | No | Sequence uuid or name; default: active sequence. | |
| overwrite | No | Allow replacing an existing destination file. | |
| source_in | No | ||
| source_out | No | ||
| audio_track | No | A1 | |
| destination | Yes | Absolute path of the .kdenlive file to write (the source by default is never modified; see save_project_copy for the overwrite rules). | |
| expected_sha256 | No | Required to write over the source: its sha256 as last read. Tools that take `revision` use it when this is omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio | No | ||
| media | No | ||
| saved | Yes | ||
| title | No | ||
| track | No | ||
| relink | No | ||
| effects | No | ||
| markers | No | ||
| timeline | No | ||
| subtitles | No |