Add effect
add_effectAppend a verified effect to a Kdenlive clip with optional parameters; write the updated project to a destination without modifying the source and check revision to prevent stale edits.
Instructions
Append a verified effect (list_effects) to a clip, with optional parameters; omitted ones take their defaults. Video effects go on the video part of an audio/video pair. 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>",
"clip": "<clip>",
"revision": "<revision>",
"effect": "<effect>",
"destination": "<destination>"
},
"name": "add_effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | Yes | Clip ref from get_timeline, '<track>@<start>' (e.g. 'V1@90'). It changes when the clip moves: read the timeline again after an edit. | |
| path | Yes | Absolute path of a .kdenlive project file on this machine. | |
| effect | Yes | Effect id from list_effects, e.g. 'crop'. | |
| params | No | ||
| revision | Yes | sha256 of the project file (file.sha256 from get_timeline) that the clip ref comes from; the edit is refused if the file changed since. | |
| sequence | No | Sequence uuid or name; default: active sequence. | |
| 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 |