Relink media
relink_mediaPoint bin clips at new media files after moving a media folder. Updates every bin and timeline instance while preserving timing, IDs, and effects, then writes the project to a destination file.
Instructions
Point bin clips at new media files, for example after moving a media folder. mapping maps a bin_id, a stored reference or a resolved path (from list_project_media) to the new absolute path. Every copy of the clip (bin and timeline instances) is updated; timing, ids and effects are kept. The new file is read by MLT first: fewer frames than the timeline uses, or a missing video/audio stream it uses, is refused ([media_mismatch]); other differences are warnings. Clips using a proxy are refused. 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>",
"mapping": "<mapping>",
"destination": "<destination>"
},
"name": "relink_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of a .kdenlive project file on this machine. | |
| mapping | Yes | {bin_id | old reference | old resolved path: new absolute path} | |
| 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). | |
| 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 |