edit_apply
Apply a validated batch of video timeline edits as one revision, including clip, caption, overlay, audio, and transition changes, while leaving the project unchanged if the batch is invalid or stale.
Instructions
Apply a complete validated batch as one revision. Timeline controls: set_clips, insert_clip, replace_clip, insert_gap, set_gap, split_clip, remove_clip, trim_clip, reorder_clips, delete_source_range, delete_words. Set an incoming crossfade/dip/wipe with set_transition (overlaps existing retained ranges and shortens output). set_clip_visual controls crop, focus, fit, position and timed motion keyframes. set_clip_audio controls independent source bounds/offset, gain, role, fades and volume envelope; patch:null restores linked sound. set_audio controls voice/music/effects gains, optional music ducking, voice noise reduction and automatic loudness. upsert_overlay adds media or reusable title/lower_third/callout text. set_caption_cues edits wording, line breaks and fixed output timing; cues:null returns to source-timed captions. Also supports remove_overlay, set_captions, set_settings, set_custom, set_asset_color and set_clip_color. Use draft_stage for a proposal preview. Invalid or stale batches leave the project unchanged. Originals are preserved.
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": {
"projectDir": "<projectDir>",
"expectedRevision": "<expectedRevision>",
"operations": "<operations>"
},
"name": "edit_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | ||
| projectDir | Yes | Absolute path of the local video project directory | |
| expectedRevision | Yes | Revision returned by project_inspect. Prevents overwriting newer edits. |