See the project
15 tools: get_project_digest, get_state, list_media, get_frame…
get_project_digest
Read the whole project: canvas size/fps, every clip on the timeline (main / overlays / audio / titles) with timings and effects, the media bin, captions state, and the transcript (what is said and when). Call this FIRST to understand a project before editing it. The editing playbook (order of operations, caption/audio checks before export) is get_guide('workflow').
get_state
Quick studio state: the open project, playhead, current selection, running jobs, and whether writes are enabled.
list_media
List the media in the project's bin: id, name, kind, duration, transcript flag, and portable source (Google Drive file id / desktop path) when set — sources sync across devices so clips can be re-fetched without re-importing bytes. A file that isn't on this device has missing:true and, when another of the user's devices has it, onDevices (e.g. ["Mac · Desktop app"]) — files never travel between devices: ask the user to open the studio there or pick the file here.
get_frame
Render and return a preview frame at timeline second t (defaults to the current playhead) so you can SEE the video. Use it to check what a moment looks like before or after an edit.
| Input | Type | |
|---|---|---|
t | number |
get_filmstrip
WATCH a video: one contact-sheet image of up to ~20 deduped frames with burned-in timestamps (reading order left→right, top→bottom), sampled across the media's SOURCE time (optionally [start,end]). This is how you see the footage's whole flow — combine it with the transcript (what's said), get_visual_map (scene boundaries + motion) and get_audio_levels (sound) and you genuinely know the video. Then zoom ONE moment with get_frame. Near-identical frames are dropped automatically, so a held shot doesn't waste tiles. Use it FIRST on any footage you haven't seen. (Model can't read images at all? describe_video narrates the frames as text.)
| Input | Type | |
|---|---|---|
mediaId | string | Required |
start | number | |
end | number | |
frames | number |
get_edit_preview
One image of the CURRENT EDIT — N frames across the timeline (default 6), timestamps burned in. Show it to the user with a short change list after the rough cut and before export. If the brief asked for a rough checkpoint, wait for their go and call approve_rough.
| Input | Type | |
|---|---|---|
frames | number |
describe_video
TEXT-ONLY models: this is your eyes. An on-device captioning model narrates sampled frames of a media as a timestamped TEXT timeline ('0:03 — a man walking down a dirt road…'). No image support needed — works for any agent, local Ollama models included. Combine with the transcript + get_visual_map + get_audio_levels and you know the video without seeing it. First call downloads a ~200MB model and takes a while (~1s per frame after); results are cached. If your model CAN read images, prefer get_filmstrip (richer, faster).
| Input | Type | |
|---|---|---|
mediaId | string | Required |
start | number | |
end | number | |
frames | number |
get_visual_map
See the STRUCTURE of footage without speech (b-roll, sports attempts, montage material) — samples frames along a media's source time and returns scene/cut boundaries plus per-segment motion (low/medium/high) and brightness. Use it the way you use the transcript for speech: as the skeleton to cut against (e.g. many attempts at a trick → boundary-separated segments; keep the interesting high-motion ones, cut the resets). Pair with get_audio_levels to land those cuts on music beats. Takes a few seconds on long clips.
| Input | Type | |
|---|---|---|
mediaId | string | Required |
stepSec | number |
get_pose_map
Body transcript for sports / action — on-device Pose (heavy) over the media's SOURCE time. Returns jump / high_reach / pull_up / impact events with confidence, coverage, and degraded flag. Requires a live Studio tab (https://eziclip.com/studio). If degraded, fall back to get_visual_map — do not invent jumps. Verify 1–2 peaks with get_frame before keep_time_windows.
| Input | Type | |
|---|---|---|
mediaId | string | Required |
start | number | |
end | number | |
kinds | array of string |
find_pose_matches
Find every SOURCE window where the body pose matches the pose at refSrcSec (same media). Requires live Studio tab. Apply matches with keep_time_windows. Use when the user says 'cut every moment like this frame'.
| Input | Type | |
|---|---|---|
mediaId | string | Required |
refSrcSec | number | Required |
start | number | |
end | number | |
threshold | number |
get_audio
Return the ACTUAL audio of a media's source window [start,end] as a WAV clip you can listen to — hear exactly what was said, catch a mumble or wrong word, decide a cut by ear. Only useful if your model accepts audio input; a text-only model should use get_audio_levels instead. Capped at ~20s per call.
| Input | Type | |
|---|---|---|
mediaId | string | Required |
start | number | Required |
end | number | Required |
get_audio_levels
'Hear' the audio as data: an RMS-energy envelope (one number per binMs, default 50ms) plus the detected silent spans over a media's source-time window [start,end]. Use it to place a cut on a real pause, confirm a word actually lands where the transcript claims, or find where captions drift — works for any model. Get mediaId + word timings from get_project_digest. (If your model accepts audio, get_audio returns the actual sound.)
| Input | Type | |
|---|---|---|
mediaId | string | Required |
start | number | Required |
end | number | Required |
binMs | number |
get_mix_audio
Listen to the MIXED timeline as WAV (≤~12s window). Also returns loudness {peakDbfs, rmsDbfs, clippingRisk, tooQuietForSocial, note} — relay the note to the user; social target ≈ −14 LUFS. Use after adding music/SFX or ducking. Requires live Studio tab.
| Input | Type | |
|---|---|---|
start | number | Required |
end | number | Required |
get_beat_map
Inspect one media's SOURCE tempo grid (BPM, beats, strong beats). For editing the board use get_timeline_beats (multi-track timeline clock) then snap_to_beats / arrange_on_beats / split_on_beats. Works on music; fails clearly on speech/ambient. start/end bound the analysis window (source seconds).
| Input | Type | |
|---|---|---|
mediaId | string | Required |
start | number | |
end | number |
get_timeline_beats
Board beat clock in TIMELINE seconds — union of strong/weak hits from every audio track (same grid the Snap magnet uses). Filter with mediaId, trackId, which (strong|weak|all), fromTl/toTl. Then snap_to_beats, arrange_on_beats, or split_on_beats — or pass a beat's t as tlStart to add_sticker / add_title / add_audio_asset. Craft: get_guide('cutting-to-music').
| Input | Type | |
|---|---|---|
mediaId | string | |
trackId | string | |
which | one of strong | weak | all | |
fromTl | number | |
toTl | number |