import_edit
Import a hand-trimmed Kdenlive or MLT playlist into the project timeline, replacing the current edit with its surviving ranges while preserving undoability.
Instructions
Lay a cut made in Kdenlive down as this project's timeline.
The supported way to bring an outside edit in. seed_timeline lays a clip
down and lets auto-editor find the cuts; this takes a .kdenlive (or
.mlt) playlist somebody already trimmed by hand and reads its surviving
ranges into the timeline. It replaces the whole timeline, and the previous
one is snapshotted first, so it is undoable like any other mutation —
which is the part the hand-rolled version of this never had (HISTORY.md
§ The VO the project was holding: 63 ranges were parsed out of a
.kdenlive and written straight to Edit, bypassing cut and its
history).
Every clip the document references has to be registered already — the
resources are matched against registered clips by resolved path, and any
that do not match are named rather than imported behind your back. Pass
clip_id for a single-source document whose media sits at a path this
project does not know.
Ranges that overrun a clip's registered duration are clamped and reported
in overshot, never silently dropped: auto-editor's own exports overshoot
the tail by one frame, so a clean overshot is worth reading rather than
assuming. plan resolves and checks without writing.
Refused by name rather than half-read: a <blank> in the playlist (real
runtime an Edit has nowhere to put), and two playlists carrying
different cuts (a multi-track picture edit, which proofcut's one linked A/V
track has no shape for).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The project directory to act on. Omit it — the usual case — when this server is bound to a project (started as `proofcut -C DIR mcp`, or inside a project; `ping` says which): it then resolves to that one bound project, a relative path resolves against it, and a path outside it is refused by name. Unbound, `path` is the whole address and omitting it refuses rather than guessing. | |
| plan | No | Resolve the whole call and report what it would do, writing nothing. Prefer it over doing the thing and undoing it. | |
| clip_id | No | The registered clip to attribute a single-source document to, when its media sits at a path this project does not know. | |
| document | Yes | The `.kdenlive` or `.mlt` playlist somebody already trimmed by hand. Every clip it references has to be registered already; ones that do not match a registered clip by resolved path are named rather than imported behind your back. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||