Cut and structure

27 tools: remove_pauses, cut_source_range, restore_cuts, nudge_cut_boundary…

remove_pauses

Remove pauses · Changes or removes

Cut silences out of a main clip using the real audio waveform (RMS), falling back to transcript gaps when audio can't be decoded. Needs a transcript first. Additive on existing cuts. Returns a report: durationBefore/After, removedSec, captionLines, warnings — show the new length to the user.

InputType
clipIdstringRequired

cut_source_range

Cut source range · Changes or removes

Non-destructively cut a source-time range [start,end] in seconds out of a main clip. Snaps to word-gap midpoints by default; pass snap:false for a manual boundary.

InputType
clipIdstringRequired
startnumberRequired
endnumberRequired
snapboolean

restore_cuts

Restore cuts · Changes the project

Remove every cut on a main clip (restore the whole clip).

InputType
clipIdstringRequired

nudge_cut_boundary

Nudge cut boundary · Changes the project

Fine-tune one edge of a text-cut join when autocut landed off the real audio. Pass atSrc inside/near the cut gap, edge left|right, and deltaSec (positive = later). No gap snap.

InputType
clipIdstringRequired
atSrcnumberRequired
edgeone of left | rightRequired
deltaSecnumberRequired

seek_to_word

Seek to word · Reads

Seek the playhead to a SOURCE second on a main clip (and scroll the timeline). Use before/after cutting to verify by ear.

InputType
clipIdstringRequired
srcSecnumberRequired

review_cut_join

Review cut join · Reads

Review a text-cut join for headless agents: returns join timings + a short mix WAV around the cut + JPEG frames just before/after. Pass index to cycle (0, 1, 2…). Listen for a click or mid-word cut; look at the frame pair for a jump. Also plays in the live Studio tab when focused.

InputType
indexnumber

trim_clip

Trim clip · Changes the project

Trim a clip's in or out edge to a source-time value in seconds.

InputType
clipIdstringRequired
edgeone of in | outRequired
tonumberRequired

split_clip

Split clip · Changes the project

Split a clip into two at a source-time point in seconds.

InputType
clipIdstringRequired
atSrcnumberRequired

reorder_main

Reorder main · Changes the project

Reorder the main track. Pass ALL main clip ids in the new order (a full permutation).

InputType
idsarray of stringRequired

remove_clips

Remove clips · Changes or removes

Delete clips by id.

InputType
idsarray of stringRequired

move_clip

Move clip · Changes the project

Move a clip: { track:'main', index } reorders Video 1; { tlStart } sets absolute timeline start for main (sticker), overlay, audio, or title. Prefer snap_to_beats / arrange_on_beats when landing on music.

InputType
clipIdstringRequired
toobjectRequired

assemble_from_plan

Assemble from plan · Changes or removes

Build the main track from the submitted edit plan in one step: one clip per beat, in order, with that beat's source window. Replaces existing main clips. Prefer this when the plan spans multiple takes or needs a reorder — instead of split + keep_time_windows + rearrange. Requires submit_edit_plan first. Returns clips + script — confirm the script still reads as one story, then polish.

keep_time_windows

Keep time windows · Changes or removes

Set keep islands on a main clip in one shot (SET_CLIP_KEEP). windows = [{start,end}] in SOURCE seconds. policy 'keep' (default) = keep ONLY those windows; 'cut' = remove those spans from the current keep. When a transcript exists, edges snap to word boundaries (a word must be ≥50% inside or its midpoint in the window — prevents neighbour words leaking into captions). Returns a report: durationBefore/After, removedSec, windowsApplied, captionLines, warnings — show the new length and resulting lines to the user. Requires live Studio tab. Max 80 windows; each ≥ ~2 frames. For a multi-beat plan across takes, prefer assemble_from_plan.

InputType
clipIdstringRequired
windowsarray of objectRequired
policyone of keep | cut

suggest_highlight_windows

Suggest highlight windows · Reads

Suggest high-confidence sports highlight windows from pose ∪ high-motion scenes. Does NOT apply keep — you still call keep_time_windows after verifying with get_frame. Requires live Studio tab.

InputType
mediaIdstringRequired
kindone of sports
startnumber
endnumber
minConfidencenumber

set_clip_speed

Set clip speed · Changes the project

Set constant Speed on a video or audio clip. rate is the multiplier (1 = 100%, 0.5 = 50%, 2 = 200%) — same as the Studio Speed row. Non-1× uses on-device smooth frame synth when ready (preview cache + export); live playhead is still playbackRate. keepPitch (default true) keeps the voice's pitch while retiming — pass false for the classic resample where pitch rides the rate. For ramps use animate(prop:'speed', keyframes:[{t,v}]) with v as rate; a ramp always resamples. Pass reset:true for 1×. Requires live Studio tab.

InputType
clipIdstringRequired
ratenumber
keepPitchboolean
resetboolean

snap_to_beats

Snap to beats · Changes the project

Snap existing clips onto the board beat grid. clipIds = main, overlay, audio, and/or titles. edges: in | out | both (default). which / mediaId / trackId filter the grid like get_timeline_beats. Prefer checkpoint first.

InputType
clipIdsarray of stringRequired
edgesone of in | out | both
whichone of strong | weak | all
mediaIdstring
trackIdstring
fromTlnumber
toTlnumber

arrange_on_beats

Arrange on beats · Changes the project

Montage pack: place clipIds in order on successive board beats (default which=strong, beatsPerClip=1). Works for main, overlay, audio, titles. Optional startAtTl / mediaId / trackId. One undo step. Prefer checkpoint first. Craft: get_guide('cutting-to-music').

InputType
clipIdsarray of stringRequired
whichone of strong | weak | all
beatsPerClipnumber
startAtTlnumber
mediaIdstring
trackIdstring

split_on_beats

Split on beats · Changes the project

Split a main, audio, or overlay clip on the board beat grid (timeline hits from all / filtered audio tracks). which: strong (default) | weak | all. Optional mediaId/trackId/fromTl/toTl/maxCuts. Prefer checkpoint first. For packing many clips use arrange_on_beats. Craft: get_guide('cutting-to-music').

InputType
clipIdstringRequired
whichone of strong | weak | all
mediaIdstring
trackIdstring
fromTlnumber
toTlnumber
maxCutsnumber

place_main_clip

Place main clip · Changes the project

Put a Video 1 clip at an exact timeline second (startSec), optionally at a new position in the order (index). By default every other clip keeps its time (a gap may open); keepOthers:false slides the touching clips along with it instead.

InputType
clipIdstringRequired
startSecnumber ≥ 0Required
indexinteger ≥ 0
keepOthersboolean

set_main_gap

Set main gap · Changes the project

Leave gapBeforeSec seconds of empty picture before a Video 1 clip (0 closes the gap).

InputType
clipIdstringRequired
gapBeforeSecnumber ≥ 0Required

shift_main_clips

Shift main clips · Changes the project

Slide several Video 1 clips together by deltaSec (negative = earlier), leaving every other clip where it is.

InputType
clipIdsarray of stringRequired
deltaSecnumberRequired

add_overlay

Add overlay · Changes the project

Lay a bin video or image ON TOP of the picture as an overlay (picture-in-picture, B-roll over the speaker, a logo). tlStart (default playhead), durationSec (video: up to its length; image: default to the end of the picture), lane (default a new row on top), x / y (centre offset, −0.5..0.5, y negative = up) and scale (1 = 35% of the canvas width, the PiP default; scale = wantedWidthPx / (0.35 × canvas width)). Returns clipId — refine with set_transform, animate, set_transition. mediaId from list_media.

InputType
mediaIdstringRequired
tlStartnumber
durationSecnumber
laneinteger ≥ 0
xnumber
ynumber
scalenumber

place_overlay

Place overlay · Changes the project

Move an overlay clip to another row (lane, 0 = bottom overlay row) and/or another start (tlStart, timeline seconds). Rows emptied by the move disappear.

InputType
clipIdstringRequired
laneinteger ≥ 0Required
tlStartnumber ≥ 0Required

place_audio_clip

Place audio clip · Changes the project

Move an audio clip to a new start (tlStart) and optionally onto another track (trackId from get_project_digest). Omit trackId and pass trackName to put it on a NEW track.

InputType
clipIdstringRequired
tlStartnumber ≥ 0Required
trackIdstring
trackNamestring

move_layer_row

Move layer row · Changes the project

Move a whole timeline row to another height in the stack: the row at lane goes to row index to (0 = bottom). Everything on that row moves with it. For one object use set_layer_order.

InputType
laneinteger ≥ 0Required
tointeger ≥ 0Required

delete_overlay_row

Delete overlay row · Changes or removes

Delete one overlay row (lane) with every clip on it; the rows above move down. One undo step.

InputType
laneinteger ≥ 0Required

delete_audio_track

Delete audio track · Changes or removes

Delete an audio track and every clip on it (an empty track too). One undo step.

InputType
trackIdstringRequired