Add media to bin
add_media_to_binAdd audio or video files to a Kdenlive project's bin, not the timeline, and write the updated project to a destination; files already in the bin are reported as existing instead of duplicated.
Instructions
Add audio or video files to a project's bin (not to the timeline) and write the result to destination. Files already in the bin are reported as 'existing' with their clip id instead of being duplicated. Clip data comes from MLT, as in Kdenlive. Same safety rules as save_project_copy.
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>",
"media_paths": "<media_paths>",
"destination": "<destination>"
},
"name": "add_media_to_bin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of a .kdenlive project file on this machine. | |
| overwrite | No | Allow replacing an existing destination file. | |
| 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). | |
| media_paths | Yes | Absolute paths of media files. | |
| 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 |