apply_cleanup
Removes content in every 'Scout/Cleanup:' marker range on the active sequence using lift (leaves gap) or extract (ripples later content left), with a backup clone created first.
Instructions
DESTRUCTIVE — applies Lift or Extract to every 'Scout/Cleanup:' marker range on the active sequence. Lift removes the content within each range and leaves a gap; Extract removes it AND ripples later content left to close the gap. A backup clone of the sequence is created FIRST (look for ' — backup' in the Project panel) so this is recoverable. If the backup cannot be confirmed, the tool ABORTS before touching the timeline and returns an error; only after the user explicitly accepts the risk may you retry with allowNoBackup: true. Acts ONLY on markers whose name starts with 'Scout/Cleanup:' — to apply over markers you placed in another namespace, first rename them via remove_markers + place_markers. Requires the CEP helper to be running (see cep-helper/README.md). Confirm with the user before invoking — this changes their timeline. Extract mode also leaves a GREEN point marker (prefix 'Scout/Edit:') at each join location so the user can navigate via the Markers panel and audit each cut. Listable/removable via list_markers/remove_markers with prefix='Scout/Edit:'. Lift mode does NOT place these (the gap is already the visual breadcrumb). The result includes a log:[...] array of internal diagnostic lines — check it (especially the backup line) and surface anything alarming to the user. The result always includes activeSequence {name, id} — the sequence this call actually ran against. Compare it across calls to detect the user switching sequences in Premiere mid-session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | lift = remove content, leave gap. extract = remove content AND ripple later content left. | |
| allowNoBackup | No | Optional, default false. By default the tool ABORTS (before any razor/remove) when the pre-apply backup clone cannot be confirmed — createCloneAction sometimes returns null (cause unknown; see the tool error text). Pass true ONLY after the user has explicitly agreed to proceed without a backup (e.g. they saved the project and accept the risk). |