[ { "name": "import_media", "toolbox": "media", "description": "When: Bring files into the bin. Import local media files and block until each probe finishes (15s cap). Paths must be absolute (or file://). There is no directory-listing op: if the user named a file loosely (\"GX010023.mp4 in Downloads\", \"the wedding clip\"), glob or search with YOUR own filesystem tools, then pass the hits here. Returns {assets:[{id, index, name, kind, dur, pending}]}, plus missing:[paths that do not exist] and refreshed:[paths already in the bin] \u2014 treat a non-empty missing as \"search again\", not as a bin problem. A path already in the bin whose file changed on disk (same path, new content) is re-probed in place: its id is listed in reprobed and dur is the new length; clips keep the asset and are clamped if the media got shorter (undoable, \"Media refreshed\"). An id in stale could not be re-read and still describes the old file. On timeout returns error import_timeout with the same assets array and pending:true on the stragglers. Adding new files is not undoable.", "schema": { "properties": { "folder": { "description": "Bin folder id (or unique name) new files land in; \"\" for the bin root. Default: the folder the user is viewing. Paths already in the bin stay where they are", "type": "string" }, "paths": { "description": "Absolute file paths from your own filesystem search", "items": { "type": "string" }, "type": "array" }, "previews": { "default": true, "description": "false: probe only; video and audio get no thumbnail or filmstrip until something needs one (the bin showing the file, or place_clip), which saves decoding on big scripted imports", "type": "boolean" } }, "required": [ "paths" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_assets", "toolbox": "media", "description": "When: See what is in the bin. List imported assets. Returns {assets:[{index, id, name, kind, dur, w, h, folderId, proxy?}]}; proxy, on videos, is the create_proxies state; folderId \"\" is the bin root (see list_folders). usage:true adds clips, how many clips use each asset (inside composites too), and derived, how many assets were made from it (a stabilized render's original; in use even with clips 0; absent when none). There is no recording timestamp \u2014 \"in the order I shot them\" cannot be recovered from this list; sort by name or by the order they were imported.", "schema": { "properties": { "usage": { "description": "Add each asset's clip count", "type": "boolean" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "remove_unused_assets", "toolbox": "media", "description": "When: Clear media no clip uses. Remove every asset no clip uses (inside composites too), in one undo step. Kept: composite assets, each a whole nested timeline (kept_composites), and the originals of stabilized renders, which re-stabilizing reads (kept_sources); remove_asset takes one explicitly. dry_run:true only lists them. Returns {assets:[{id, name, kind}], removed, dry_run, kept_composites, kept_sources}. The files on disk are untouched.", "schema": { "properties": { "dry_run": { "description": "List what would go without removing it", "type": "boolean" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "list_missing_media", "toolbox": "media", "description": "When: Find media whose file is gone. Returns {missing:[{asset, name, path, clips}], n}: assets whose file isn't there any more (moved, renamed, or on a drive this session can't see), with how many clips use each. Fix them with relink_media.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "relink_media", "toolbox": "media", "description": "When: Point moved media at its new place. Relinks missing media in one undo step. {from, to}: a folder or drive that moved, e.g. {from:\"/mnt/hd/VIDEOS\", to:\"/mnt/x/VIDEOS\"} (from may be another platform's path, e.g. \"D:/footage\"): each missing file under from is pointed at the same place under to (assets, clips, masks, transcripts, effect files). {search_dir}: finds each missing asset's file by name under that folder; missing files of one name it can't tell apart (no known size, or the same one) aren't guessed, and a search cut short at 200,000 files relinks nothing. A file is only relinked when it's there, isn't another asset's, and is the same size as before (when known); files still in place aren't touched. Returns {relinked:[{from, to}], n (paths), matched (from/to only: paths under from), still_missing:[{path, reason, tried?, asset?, candidates?}], still_missing_n, truncated?}; lists cut at 200. Error locked when a locked track holds one of the clips (a dry_run can't foresee that). dry_run:true reports without changing anything.", "schema": { "properties": { "dry_run": { "description": "Report only", "type": "boolean" }, "from": { "description": "Old folder or drive (absolute)", "type": "string" }, "search_dir": { "description": "Folder to search for missing files by name", "type": "string" }, "to": { "description": "New folder or drive (absolute)", "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "create_proxies", "toolbox": "media", "description": "When: Make preview proxies for footage. Queue preview proxies (small, fast-decoding copies preview reads instead of the original; export always reads the original). Pick assets, the assets of clips, all:true (every video in the bin) or all_slow:true (every video that would preview slowly: past 1080p, or 10-bit HEVC/AV1/VP9; probes each file, error timeout past a minute). A composite isn't a video: pick the clips inside it. Built one at a time in the background: poll proxy_status. Preview only reads them with useProxies on (set_ui_preferences). Not undoable: a proxy is a cache. Returns {queued:[ids], already:[{asset, state}], skipped:[{asset|clip, reason: not_video|missing|no_media|gone}], not_slow? (all_slow), queue:{busy, progress, current, queued}, useProxies, proxySize, proxyLocation, proxyFolder}.", "schema": { "properties": { "all": { "description": "Every video asset", "type": "boolean" }, "all_slow": { "description": "Every video asset that would preview slowly", "type": "boolean" }, "assets": { "description": "Asset ids, names or indexes", "items": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "type": "array" }, "clips": { "description": "Clip ids whose assets get proxies", "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "proxy_status", "toolbox": "media", "description": "When: Check preview proxies. Per-asset proxy state for video assets: none, queued, building, ready (made by Drift at the current size) or linked (a file made elsewhere, matched by name). A failed build reads none with error. Default every video asset; or pick assets/clips. Returns {proxies:[{asset, name, state, error?, location?, path?}], counts:{state: n}, truncated? (rows cut at 500), queue:{busy, progress, current, queued}, useProxies, proxySize, proxyLocation, proxyFolder}; picked assets or clips with no video come back in skipped. location (ready/linked rows): beside, folder, cache or linked.", "schema": { "properties": { "assets": { "description": "Asset ids, names or indexes", "items": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "type": "array" }, "clips": { "description": "Clip ids", "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "remove_proxies", "toolbox": "media", "description": "When: Delete preview proxies. Drop queued proxies, stop one being built and delete the proxies Drift made at the current size (assets, clips or all:true). A linked proxy (made elsewhere) is never deleted. Not undoable. Returns {removed:[ids], kept:[{asset|clip, reason: none|linked|not_video|no_media}], queue, useProxies, proxySize, proxyLocation, proxyFolder}.", "schema": { "properties": { "all": { "description": "Every video asset", "type": "boolean" }, "assets": { "description": "Asset ids, names or indexes", "items": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "type": "array" }, "clips": { "description": "Clip ids whose assets lose their proxies", "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "cancel_proxies", "toolbox": "media", "description": "When: Stop building proxies. Empty the proxy queue (automatic ones from import included) and stop the one being built; one whose last frames already landed may still finish. Proxies already made stay. Returns {cancelled, queue, useProxies, proxySize, proxyLocation, proxyFolder}.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "rename_asset", "toolbox": "media", "description": "When: Rename a bin row. Rename an asset in the bin. Does not rename the file on disk. On a composite asset it renames that timeline, tab included.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "name": { "description": "New display name", "type": "string" } }, "required": [ "asset", "name" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_folders", "toolbox": "media", "description": "When: See the bin's folder tree. List media-bin folders. Returns {folders:[{id, name, parentId, count}]}; parentId \"\" is the bin root and count is the number of assets directly inside.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "create_folder", "toolbox": "media", "description": "When: Make a bin folder. Create a media-bin folder. Names need not be unique. Returns {id}.", "schema": { "properties": { "name": { "description": "Folder name", "type": "string" }, "parent": { "description": "Parent folder id (or unique name); omit or \"\" for the bin root", "type": "string" } }, "required": [ "name" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "move_asset_to_folder", "toolbox": "media", "description": "When: File an asset into a bin folder. Move a bin asset into a folder. Clips on the timeline are unaffected. Returns {asset, folderId, changed}.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "folder": { "description": "Folder id (or unique name); \"\" for the bin root", "type": "string" } }, "required": [ "asset", "folder" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "rename_folder", "toolbox": "media", "description": "When: Rename a bin folder. Rename a media-bin folder. Returns {id, name, changed}.", "schema": { "properties": { "folder": { "description": "Folder id (or unique name)", "type": "string" }, "name": { "description": "New name", "type": "string" } }, "required": [ "folder", "name" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "delete_folder", "toolbox": "media", "description": "When: Remove a bin folder. Delete a media-bin folder. By default its assets and subfolders move up to its parent, as in the app. recursive:true instead removes every subfolder and every asset under it from the bin; it fails in_use (changing nothing) if any of those assets has clips on the timeline, and locked if one of them is a timeline with a locked track. One undo step. Returns {deleted:[folder ids], removedAssets}.", "schema": { "properties": { "folder": { "description": "Folder id (or unique name)", "type": "string" }, "recursive": { "description": "Also remove subfolders and their assets (default false)", "type": "boolean" } }, "required": [ "folder" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "remove_asset", "toolbox": "media", "description": "When: Delete a bin row. Remove an asset from the media bin. Refused with in_use while any clip uses it, on any timeline; list_assets({usage:true}) counts them. A composite asset is a whole timeline: removing it deletes that timeline and everything in it and closes its tab (editing falls back to the main timeline); refused with locked when that timeline has a locked track. One undo step.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] } }, "required": [ "asset" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "replace_asset", "toolbox": "media", "description": "When: Swap source file. Point an existing bin row at a different file. Every clip using the asset switches to the new media, keeping its trim and timeline position \u2014 trims past the new file's duration are clamped downstream. The file is always re-read, also when it is the same path with new content; the call waits for that (15s cap) and returns the asset as now probed (dur, kind) with reprobed:[id], or replace_failed; past the cap import_timeout, with pending:true to poll.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "path": { "description": "Absolute path or file:// URL; must exist", "type": "string" } }, "required": [ "asset", "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "refresh_asset", "toolbox": "media", "description": "When: Re-read a file changed on disk. Re-probe an asset's own file after it was rewritten at the same path, and drop every cached decode, thumbnail, waveform and preview proxy of the old content. Keeps the asset's name, bin trim and rotation; clips keep the asset and are clamped if the media got shorter. Blocks until the probe lands (15s cap). import_media of the same path does this on its own when the file's size or modification time changed; use this when they did not (e.g. a copy that preserved mtime). Returns {assets:[{id, index, name, kind, dur, pending}], stale} \u2014 stale:true means the file could not be re-read (or is now another kind of media) and the asset still describes the old file.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] } }, "required": [ "asset" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "export_asset_image", "toolbox": "media", "description": "When: Export a still from an asset. Write an image file from a bin asset (its poster frame for video). Creates parent folders. The format follows the path's extension.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "path": { "description": "Absolute output path, extension picks the format", "type": "string" } }, "required": [ "asset", "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "import_media_bytes", "toolbox": "media", "description": "When: Import from base64. Decode base64 bytes to a file, then import it like import_media. ALWAYS pass an explicit `path`: with only `name` the file is written to a temporary directory that is deleted as soon as the call returns, leaving the asset pointing at a missing file. Returns the same shape as import_media.", "schema": { "properties": { "data": { "description": "Base64-encoded file bytes", "type": "string" }, "name": { "description": "Filename hint (e.g. clip.mp4). Used only when path is omitted.", "type": "string" }, "path": { "description": "Absolute write path \u2014 strongly recommended; parent folders are created", "type": "string" } }, "required": [ "data" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "inspect_pdf", "toolbox": "media", "description": "When: Page count of a PDF, and whether the viewer addon is installed. Read-only. Give path for a file, or clip for a PDF clip already on the timeline (adds its options: firstPage, lastPage, layout, gridColumns, gap, scrollX, scrollY, zoom, keyframes). Returns pageCount (0 when the pdfium addon is missing), addonAvailable and addonId; install_addon with that id when it is missing.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "path": { "description": "Absolute .pdf path", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "set_pdf_options", "toolbox": "media", "description": "When: Pages shown and layout of a PDF clip. Choose which pages a PDF clip shows and how they are laid out; only supplied keys change. Pages are 1-based and clamp to the document once its page count is known. Scrolling and zoom are not set here: keyframe pdf.scrollX, pdf.scrollY (page units) and pdf.zoom (0.1..10) with set_keyframe.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "firstPage": { "description": "First page shown, 1-based", "maximum": 9999, "minimum": 1, "type": "integer" }, "gap": { "description": "Space between pages in PDF points (default 12)", "maximum": 200, "minimum": 0, "type": "number" }, "gridColumns": { "description": "Columns of the grid layout", "maximum": 20, "minimum": 1, "type": "integer" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "lastPage": { "description": "Last page shown; 0 = through the last page", "maximum": 9999, "minimum": 0, "type": "integer" }, "layout": { "description": "Pages stacked in a column, side by side in a row, or in a grid", "enum": [ "column", "row", "grid" ], "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_asset_rotation", "toolbox": "media", "description": "When: Fix a sideways video in the bin. Override the bin asset's orientation losslessly (the decoder rotates; nothing is re-encoded). degrees is absolute 0/90/180/270; -1 returns to the file's own rotation tag. Clips already on the timeline keep their own correction \u2014 use set_clip_orientation for those. Returns {asset, degrees, changed}.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "degrees": { "description": "0, 90, 180, 270, or -1 for the file's tag", "maximum": 359, "minimum": -1, "type": "integer" } }, "required": [ "asset", "degrees" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "add_track", "toolbox": "timeline", "description": "When: Need a new lane. Prepend a track. New track becomes index 0, so every existing track index shifts down by one \u2014 re-read inspect before reusing track/index clip references. type transform adds a transform layer: a parent transform over every visual track from just below it down to span_end (default: the lowest visual track), holding one identity clip over the whole timeline. Returns {track, clip, span:{end, covers}} for it; move the group with set_transform on that clip.", "schema": { "properties": { "span_end": { "description": "transform only: index (as numbered before the add) of the last track the layer covers", "type": "integer" }, "type": { "description": "Track type", "enum": [ "video", "audio", "text", "subtitle", "shape", "transform" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "make_transform_layer", "toolbox": "timeline", "description": "When: Move several tracks as one. Add a transform layer directly above the topmost track holding one of `clips`, covering down to the lowest, with one clip over their time range (or [at, at+dur)). The clips keep their own transforms; set_transform on the returned clip moves, scales, rotates, turns in 3D (layer3d) and fades the whole group. One undo step. Returns {clip, track, index, span:{end, covers}}.", "schema": { "properties": { "at": { "description": "Start in seconds (default: the clips' earliest start)", "type": "number" }, "clips": { "description": "Clip ids to group", "items": { "type": "string" }, "type": "array" }, "dur": { "description": "Duration in seconds (default: to the clips' latest end)", "type": "number" }, "name": { "description": "Name for the transform clip", "type": "string" } }, "required": [ "clips" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "add_camera", "toolbox": "timeline", "description": "When: Add the scene camera, or cut to a new framing. One viewpoint the whole timeline is seen through: position, rotation, an optional point of interest and zoom, all animatable. Adds the camera lane if it is missing. Without `at` the clip covers the whole sequence (what a first camera wants); with `at` it is one clip starting there, so two in a row read as a camera cut. A camera at rest looks exactly like no camera, so adding one changes nothing until you move it. Frame it with set_keyframe on the returned clip (for a path of several keys, write them with set_keyframes and interpolation \"smooth\" in one call) using positionX/positionY/z (the eye, world px: canvas top-left origin, y down, +z away from the viewer; at rest [w/2, h/2, -zoom]), rotationX/rotationY/rotation (pitch, yaw, roll, degrees; yaw is applied first, so the horizon stays level with zero roll), anchorX/anchorY/anchorZ (the point of interest, used when camera_look_at is given aimAtTarget:true) and perspective (zoom, px; real zoom, the eye does not move). With no keys, set_transform moves it too. While a camera runs it replaces each clip's own perspective, because a scene has one viewer. Returns {clip, track, index}.", "schema": { "properties": { "at": { "description": "Start in seconds (default: the whole sequence)", "type": "number" }, "dur": { "description": "Duration in seconds; only with `at`", "type": "number" }, "name": { "description": "Name for the camera clip", "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_transform_span", "toolbox": "timeline", "description": "When: Change which tracks a transform layer covers. Set the last track the transform layer at `track` covers, by track index (`end`) or by a clip on it (`end_clip`). The end must be a visual track below the layer and may not cut through a nested layer's span or reach past an enclosing one; bad_args lists the valid ends. Returns {track, span:{end, covers}}.", "schema": { "properties": { "end": { "description": "Index of the last covered track", "type": "integer" }, "end_clip": { "description": "A clip id on the last covered track", "type": "string" }, "track": { "description": "Transform layer track index", "type": "integer" } }, "required": [ "track" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "remove_track", "toolbox": "timeline", "description": "When: Delete a lane and its clips. Delete a track and everything on it.", "schema": { "properties": { "track": { "description": "Track index", "type": "integer" } }, "required": [ "track" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "set_track", "toolbox": "timeline", "description": "When: Mute, solo, hide, lock or keep a lane out of export. Set track muted/hidden/locked/solo. solo:true makes only soloed tracks heard (mute and hide still apply to a soloed track), in every timeline mix: playback, get_waveform, loudness and range measurements, export_video; solo:false clears it. The picture is unaffected, it is saved with the project, and inspect marks the track solo:true. Only an audio or video track can be soloed; solo:false works on any track. exclude_from_export:true makes it a review track: still shown and heard while editing, but left out of export_video and flatten_composite (e.g. a subtitle lane with the VO script to read along); export_video doesn't reuse a bake where its clips show (the preview still plays it). Refused on a transform or camera layer. Undoable.", "schema": { "properties": { "exclude_from_export": { "description": "Keep this track out of export (a review track)", "type": "boolean" }, "hidden": { "description": "Hide from composite", "type": "boolean" }, "locked": { "description": "Lock against edits", "type": "boolean" }, "muted": { "description": "Mute", "type": "boolean" }, "solo": { "description": "Hear only soloed tracks (audio; the picture is unaffected)", "type": "boolean" }, "track": { "description": "Track index", "type": "integer" } }, "required": [ "track" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "place_clip", "toolbox": "timeline", "description": "When: Put media on the timeline. Place an asset as a clip and return the new clip's id. When overlap is off (default) the start is pushed to the next free gap; the reply carries requested, placed, and reason:\"gap\" when they differ. Note `track` means two different things: with new_track:true it is the insert position of the new track, otherwise it is the destination track and a type mismatch fails type_mismatch. With `track` omitted, the first track accepting this asset is used, and a new track is created if none does. A composite asset (a timeline) goes on the main timeline only, and only once it has content.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "at": { "description": "Timeline start seconds (default: playhead)", "type": "number" }, "new_track": { "description": "Insert a new matching track above", "type": "boolean" }, "track": { "description": "Destination track, or insert position when new_track is true", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "insert_clip", "toolbox": "timeline", "description": "When: Insert media and push the rest along. Insert an asset as a clip at an exact point, in one undo step. The point is `at` (seconds), or `before`/`after` a clip id. With ripple (default true) every later clip on the track moves right by the new clip's length, and so does every later clip on the tracks holding their linked audio, so A/V stays in sync; effect adjustments follow their clips. A locked track it would change refuses the insert. With ripple the point must be at a clip boundary or in a gap, not inside a clip (split it first); without it the space must already be free. `in`/`out` are source seconds within the media (default: the asset's bin trim, else its whole length); a range past the media fails bad_args. `track` defaults to the track of `before`/`after`, else the first that accepts the asset. Returns the new clip {id, track, index, start, dur, in, out}, moved:[{id, start}] with the final start of every clip the ripple moved, and removed_transitions:[ids] when a transition at the cut had to go (its clips no longer touch).", "schema": { "properties": { "after": { "description": "Clip id to insert after (its end)", "type": "string" }, "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "at": { "description": "Timeline seconds to insert at", "type": "number" }, "before": { "description": "Clip id to insert before (its start)", "type": "string" }, "in": { "description": "Source in, seconds (default: the bin trim's in, else 0)", "type": "number" }, "out": { "description": "Source out, seconds (default: the bin trim's out, else the media's end)", "type": "number" }, "ripple": { "default": true, "description": "Push later clips right to make room", "type": "boolean" }, "track": { "description": "Destination track", "type": "integer" } }, "required": [ "asset" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "move_clip", "toolbox": "timeline", "description": "When: Change a clip's start time. Move a clip on its track. When overlap is off (default) the start may be pushed forward to the next gap; the reply carries requested, placed, and reason:\"gap\" when they differ. Or reorder: before/after (a clip id on the same track) puts it at that clip's start or end and moves the clips in between by its length, linked tracks too, in one undo step; the reply adds moved:[{id, start}] and any removed_transitions. Refused when the two are linked, a track is locked, or a clip would land on another or before 0.", "schema": { "properties": { "after": { "description": "Clip id to move behind", "type": "string" }, "at": { "description": "New start seconds", "type": "number" }, "before": { "description": "Clip id to move in front of", "type": "string" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_sequence", "toolbox": "timeline", "description": "When: Lay a track out from a list. Make `track` exactly `clips`, end to end from `start` (default 0), in one undo step. An entry is {clip} (a clip on this track, keeping its settings) or {asset}, each with optional in/out (source seconds) and name. Unlisted clips on the track are deleted with their linked audio and effects; listed clips' linked audio moves with them. Refused, nothing changed, for a clip from another track or listed twice, a range past the media, clips linked to each other, a locked or adjustment track, or linked audio landing on another clip or before 0. Clear a track with delete_clips. Returns clips:[{id, start, dur}] in order, created, removed and any removed_transitions.", "schema": { "properties": { "clips": { "description": "The track's clips, in order", "items": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "clip": { "description": "Clip id on this track", "type": "string" }, "in": { "description": "Source in, seconds", "type": "number" }, "name": { "description": "Clip name", "type": "string" }, "out": { "description": "Source out, seconds", "type": "number" } }, "type": "object" }, "type": "array" }, "start": { "description": "Where the first clip starts, seconds", "type": "number" }, "track": { "description": "Track index", "type": "integer" } }, "required": [ "track", "clips" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "replace_clip", "toolbox": "timeline", "description": "When: Put new media under a clip. Swap the clip's media for another asset in place, in one undo step. The clip keeps its name, transform, effects and keyframes; linked audio follows when the new file has sound. A silent file leaves linked audio in place, loosely linked. in/out set the new source range (neither: the clip's length, shorter if the file runs out; a still takes none). With ripple (default) later clips, linked tracks too, move by the change in length; without, a longer clip must not land on the next. Returns moved:[{id, start}] and any removed_transitions.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "in": { "description": "Source in, seconds (alone: to the media's end)", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "out": { "description": "Source out, seconds (alone: from 0)", "type": "number" }, "ripple": { "default": true, "description": "Move later clips by the change in length", "type": "boolean" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "asset" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "swap_clips", "toolbox": "timeline", "description": "When: Exchange two clips' places. Swap two clips on one track in one undo step: each takes the other's place, the clips between them move by the difference in length, and linked A/V moves along. Refused for different tracks, linked clips, a locked track, or a clip landing on another or before 0. Returns moved:[{id, start}] and any removed_transitions.", "schema": { "properties": { "a": { "description": "Clip id", "type": "string" }, "b": { "description": "Clip id", "type": "string" } }, "required": [ "a", "b" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_duration", "toolbox": "timeline", "description": "When: Change timeline length. Set the clip's timeline duration in seconds. Trims source out (or in if reversed). Clamped to the source material left after the current trim, so the applied dur in the reply may be shorter than requested; clips with no intrinsic length (text, shape, still image) accept any duration.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "duration": { "description": "Seconds", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "duration" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_trim", "toolbox": "timeline", "description": "When: Set source in/out. Set source in/out points in seconds. Recomputes timeline duration from the span and speed. Values are not validated here \u2014 out <= in or a span past the end of the source is clamped downstream; read back in/out/dur from the reply. ripple:true (default false) also trims the clip's linked audio the same way and moves every later clip on its track (and on the tracks of their linked audio) by the change in length, whatever set_ripple says, in the same undo step; the reply then adds moved:[{id, start}]. A locked track it would change refuses it, and so does a clip sitting in the space a shorter trim would close.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "in": { "description": "Source in seconds", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "out": { "description": "Source out seconds", "type": "number" }, "ripple": { "default": false, "description": "Later clips follow the new length", "type": "boolean" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "in", "out" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "slip_clip", "toolbox": "timeline", "description": "When: Show another part of the media in the same slot. Slip: move the clip's source window and keep its start and length. by: source seconds (+ = later in the media, at any speed or direction), or in: the new source in point. Linked audio slips with it; a loosely linked clip doesn't. Stops at the media's ends: the reply has requested (echoes by, or the in point), slipped (the applied move, a delta in source seconds), and reason:\"media_start\"|\"media_end\" when it stopped short. A looped clip shifts its repeat instead, with no limit (by only; the reply adds loop_offset). Keyframes, fades, effects and transitions stay on the timeline. Face, depth, tracker and matte data follow the source but only cover the range they were analysed on (source_data lists them), and keys baked from them stay (baked_keys). Generated captions follow their words; cues whose words slip out are removed, and a caption clip left empty goes too (retimed_subtitles). One undo step. Refused for clips with no media (titles, shapes, stills, adjustments) and on a locked track, including a locked caption track or a locked lane holding a pinned effect of a removed caption clip (the whole slip is refused).", "schema": { "properties": { "by": { "description": "Source seconds to move the window; + is later in the media", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "in": { "description": "New source in point, seconds", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "move_to_track", "toolbox": "timeline", "description": "When: Move a clip to another lane. Move a clip to another track. Type must match the destination, else type_mismatch.", "schema": { "properties": { "at": { "description": "Start seconds (default: current)", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "to_track": { "description": "Destination track", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "to_track" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "split_clip", "toolbox": "timeline", "description": "When: Cut a clip in two. Split a clip at `at` seconds (default: playhead). `at` must fall strictly inside the clip, else bad_args. Returns {clips:[original id, new id], at}; the original id keeps the left part.", "schema": { "properties": { "at": { "description": "Timeline time seconds", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "delete_clip", "toolbox": "timeline", "description": "When: Remove a clip. Delete a clip and its linked A/V partner. Reversible with undo. The clip's effects and masks live on adjustments pinned to it; by default they stay on the timeline, unlinked, and keep applying to whatever sits under them. with_effects:true deletes them too, in the same undo step.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "with_effects": { "description": "Also delete the adjustments pinned to the clip (its effects and masks). Default false", "type": "boolean" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "delete_clips", "toolbox": "timeline", "description": "When: Remove several clips and close up. Delete several clips in one undo step, with their linked A/V partners. With ripple (default true) the space they leave is closed, whatever set_ripple says: later clips move left, together with every track joined to theirs by linked clips, so A/V stays in sync. Overlapping or adjacent spaces close as one. A clip in the way on one of those tracks, or a locked one, refuses the delete (nothing changes). with_effects (default true, unlike delete_clip) also deletes the adjustments pinned to them. All ids must exist, or nothing is deleted (not_found lists the unknown ones). Returns removed:[ids] (partners and effects included) and moved:[{id, start}] with the final start of every clip that moved.", "schema": { "properties": { "clips": { "description": "Clips to delete", "items": { "description": "Clip id", "type": "string" }, "type": "array" }, "ripple": { "default": true, "description": "Close the space they leave", "type": "boolean" }, "with_effects": { "default": true, "description": "Also delete the adjustments pinned to them", "type": "boolean" } }, "required": [ "clips" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "duplicate_clip", "toolbox": "timeline", "description": "When: Copy a clip after itself. Duplicate a clip immediately after it on the same track. Returns the new clip's id.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "undo", "toolbox": "timeline", "description": "When: Revert the last edit. Undo the last project edit; one apply batch is one step. Fails bad_args when the stack is empty. Does not cover the ops in catalog.limitations (import, save, playback, export, view-state toggles). set_beat_layers is the dangerous one: it changes the user's own snapping and cannot be undone. Use list_history and undo_to to jump further back.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "redo", "toolbox": "timeline", "description": "When: Re-apply an undone edit. Redo the last undone edit. Fails bad_args when there is nothing to redo.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_history", "toolbox": "timeline", "description": "When: Read the undo stack. Linear history (no branches). Returns {entries:[{index, label, short, snapshot?}] newest first, current, hash, short, total, linear:true}. index 0 is Origin (empty/loaded project); each later entry is one undo step. short is the first 12 chars of that version's SHA-256 (undo_to takes any \u22658-char prefix); hash is the full HEAD hash \u2014 the same bytes take_snapshot writes to .json. With an undo step limit set, each new step can drop the oldest and renumber the rest: keep the hash, not the index, across edits. Read-only.", "schema": { "properties": { "limit": { "default": 20, "description": "Newest entries to return", "maximum": 10000, "minimum": 1, "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "undo_to", "toolbox": "timeline", "description": "When: Jump to a history version. Restore the project to a linear history version. Pass index (from list_history) or hash (full SHA-256 or unique 8+ char prefix). Redo of later steps remains until the next edit, which discards them \u2014 there is no branching. Not itself undoable.", "schema": { "properties": { "hash": { "description": "Content hash from list_history, or a unique prefix", "type": "string" }, "index": { "description": "Target index from list_history (0 = Origin)", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "take_snapshot", "toolbox": "timeline", "description": "When: Keep a JSON copy of HEAD. Write the current history version as compact project JSON named .json under the app history folder. The file's SHA-256 is the same hash list_history reports. Does not change the project. Caps at 32 files (oldest dropped). Not undoable.", "schema": { "properties": { "label": { "description": "Optional note stored only in the reply", "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "clear_history", "toolbox": "timeline", "description": "When: Free undo history. Drop undo history to free memory and shrink the next save: keeps the newest keep_last steps that can be undone (default 0: none) and drops every undone (redo) step. The project is unchanged; media only the dropped steps used is no longer kept for them. Returns {removed, steps, index}. Not undoable.", "schema": { "properties": { "keep_last": { "default": 0, "description": "Newest undoable steps to keep", "maximum": 100000, "minimum": 0, "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "set_history_limit", "toolbox": "timeline", "description": "When: Cap or stop undo history. This project's own undo history setting, saved with it; each part set overrides the app setting the user picks in Settings \u203a General. steps: most steps that can be undone, oldest dropped first; 0 = no history, -1 = no limit; a non-zero value turns history on even when the app has it off. persist: true saves history into the project, false keeps it for this session only (with history on again, unset persist follows the app setting, or the session when the app has history off). reset:true drops both parts first. Returns {mode, steps, source, steps_kept}. Not undoable.", "schema": { "properties": { "persist": { "description": "Save history into the project (true) or keep it for this session only (false)", "type": "boolean" }, "reset": { "description": "Drop this project's setting and use the app's", "type": "boolean" }, "steps": { "description": "Most undoable steps; 0 = no history, -1 = no limit", "maximum": 100000, "minimum": -1, "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "history_stats", "toolbox": "timeline", "description": "When: How much undo history holds. Returns {steps, undoable, redoable, snapshots (project copies held in memory), saved_with_project, history_only_media (count of files only history still uses), history_only_media_paths (first 20), settings:{mode, steps, source}}. size:true adds json_bytes, the history as uncompressed JSON (what a save adds before compression; memory use is higher and not measured); it serialises every state, so it is slow on a long history.", "schema": { "properties": { "size": { "description": "Also measure json_bytes (serialises every state)", "type": "boolean" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "list_snapshots", "toolbox": "timeline", "description": "When: On-disk history JSON files. Snapshots written by take_snapshot. Returns {snapshots:[{hash, short, path, bytes, savedAt}]}.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "restore_snapshot", "toolbox": "timeline", "description": "When: Reset to a saved JSON. If hash is still on the undo stack, same as undo_to. Otherwise load the on-disk JSON and clear the stack (new Origin). Linear \u2014 redo history is discarded. Not undoable.", "schema": { "properties": { "hash": { "description": "Snapshot hash or unique prefix", "type": "string" } }, "required": [ "hash" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "changes", "toolbox": "timeline", "description": "When: What changed since a revision. The edits after revision `since` (from inspect or a previous call), oldest first, made in the editor or by you, undo/redo included. Each: {revision, source:mcp|ui, kind:edit|undo|redo, label, clips:[{id, change:added|removed|changed, track, sequence, fields, from_track, split_from}], tracks, assets, settings}; a batch is one entry. Without since, just the current revision. more:true: call again from the last revision. The log starts at your first call this session and keeps 500 edits; truncated:true (or detail:false on an old entry) means some detail is gone: re-read inspect.", "schema": { "properties": { "limit": { "default": 50, "description": "Most edits to return", "maximum": 500, "minimum": 1, "type": "integer" }, "since": { "description": "Revision you last saw", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "diff", "toolbox": "timeline", "description": "When: Compare two project versions. What differs between two states: clips added, removed or changed (with the fields), tracks and assets. from/to: a hash from list_history or take_snapshot (8+ chars) or \"head\" (default for to). E.g. check a scripted round, or what undo_to would revert.", "schema": { "properties": { "from": { "description": "Older state: hash or head", "type": "string" }, "to": { "description": "Newer state: hash or head (default)", "type": "string" } }, "required": [ "from" ], "type": "object" }, "readOnly": true, "destructive": false }, { "name": "set_overlap", "toolbox": "timeline", "description": "When: Allow clips to overlap. Project setting. Off (default): place/move push to the next gap. On: requested start is kept.", "schema": { "properties": { "enabled": { "description": "Allow overlapping clips", "type": "boolean" } }, "required": [ "enabled" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "move_track", "toolbox": "timeline", "description": "When: Change which lane sits above which. Move a track from one index to another; the tracks between them shift. Every track index and every track+index clip reference you hold is invalidated \u2014 re-read inspect after this.", "schema": { "properties": { "from": { "description": "Source track index", "type": "integer" }, "to": { "description": "Destination track index", "type": "integer" } }, "required": [ "from", "to" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_track_waveform", "toolbox": "timeline", "description": "When: Toggle the waveform drawing on a lane (cosmetic). Toggle waveform display on an audio/video track row. Cosmetic \u2014 does not affect rendering or export.", "schema": { "properties": { "show": { "description": "Show waveform", "type": "boolean" }, "track": { "description": "Track index", "type": "integer" } }, "required": [ "track", "show" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_track_height", "toolbox": "timeline", "description": "When: Resize a lane. Set the track's row height multiplier, 0.6..4.0. Cosmetic \u2014 does not affect rendering or export.", "schema": { "properties": { "scale": { "description": "Height multiplier", "maximum": 4, "minimum": 0.6, "type": "number" }, "track": { "description": "Track index", "type": "integer" } }, "required": [ "track", "scale" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "select_clip", "toolbox": "timeline", "description": "When: Focus one clip. Select exactly one clip, replacing any previous selection. REQUIRED before the selection-based ops, which take no clip argument: separate_audio, unlink_audio, link_clips, merge_clips, align_clip_left, align_clip_right, copy_selection, cut_selection. freeze_frame and paste_at_playhead are playhead-based \u2014 seek first, do not select.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "clear_selection", "toolbox": "timeline", "description": "When: Deselect every clip so selection-based ops stop applying. Clear the clip selection. Selection-based ops fail afterwards until you select again.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "select_all_clips", "toolbox": "timeline", "description": "When: Select every clip before copy_selection or cut_selection. Select every clip on the timeline. Useful before copy_selection or cut_selection.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "copy_selection", "toolbox": "timeline", "description": "When: Copy to clipboard. Copy the selected clips to the internal clipboard. Acts on the current selection \u2014 call select_clip or select_all_clips first. Paste with paste_at_playhead.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "cut_selection", "toolbox": "timeline", "description": "When: Cut to clipboard. Cut the selected clips to the internal clipboard, removing them from the timeline. Acts on the current selection \u2014 call select_clip or select_all_clips first.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "paste_at_playhead", "toolbox": "timeline", "description": "When: Drop the copied/cut clips at the playhead. Paste the internal clipboard at the playhead. Requires an earlier copy_selection or cut_selection; returns ok with no effect when the clipboard is empty. Playhead-based \u2014 seek first; selecting a clip does not change where this lands. Returns {ids:[\u2026], n} of the new clips.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "separate_audio", "toolbox": "timeline", "description": "When: Pull a video clip's audio onto its own lane. Detach the audio of the selected video clip onto its own audio track. Acts on the current selection \u2014 call select_clip first; fails bad_args when nothing separable is selected.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "unlink_audio", "toolbox": "timeline", "description": "When: Break A/V link. Break the link between paired audio/video clips in the selection so they can be moved and trimmed independently. Acts on the current selection \u2014 call select_clip first; fails bad_args when no linked clips are selected.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "link_clips", "toolbox": "timeline", "description": "When: Pair clips so they move and trim together. Link two or more selected, currently unlinked clips (typically a video and an audio from different media) so they select, move, split and delete together, and trimming one moves the others' matching edge by the same amount, while each keeps its own duration and speed. Acts on the current selection \u2014 call select_clips first; fails bad_args when fewer than two unlinked clips are selected.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "make_composite", "toolbox": "timeline", "description": "When: Collapse clips into one composite clip. Move the selected clips (with their linked audio and pinned adjustments) into a new nested timeline and put one composite clip in their place, plus a composite item in the bin. Acts on the current selection \u2014 call select_clips first. Only on the main timeline (one level of nesting: not inside a composite or a new_timeline timeline), and the selection must not already contain a composite. Returns {clip, sequence, asset}.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "dissolve_composite", "toolbox": "timeline", "description": "When: Turn a composite back into its clips. Release the selected composite clip's inner clips onto the main timeline at their original times, cut to the composite's trim, and remove the composite. The composite's own effects, transform, fades and keyframes are discarded. Fails when the composite is ramped, reversed or not at 1x, and with locked when a locked track would be changed or deleted (a main-timeline track the clips land on, or the composite's own timeline when this is its last instance). Acts on the current selection \u2014 call select_clip first.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "open_composite", "toolbox": "timeline", "description": "When: Edit inside a composite. Open a composite's timeline in its own tab and make it the timeline every other op edits (tracks, clips, inspect). Composites are the project's other timelines: the ones make_composite collapses clips into and the ones new_timeline starts. Name it by a composite clip (clip or track+index), by sequence id, or pass main:true to return to the main timeline; close_timeline closes a tab. Export always renders the main timeline. Not an undo step.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "main": { "description": "Switch back to the main timeline", "type": "boolean" }, "sequence": { "description": "Sequence id from list_composites", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_composites", "toolbox": "timeline", "description": "When: Composites, their tabs and which is open. List every composite, which means every timeline besides the main one (from make_composite or new_timeline, empty ones included): {sequence, asset, name, duration, open, active}. open: its tab is open; active marks the timeline being edited; activeSequence is empty on the main timeline. rename_asset({asset, name}) renames one; remove_asset deletes one no clip uses.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "new_timeline", "toolbox": "timeline", "description": "When: Start an empty timeline (a Short, alt cut). Create an empty timeline, as Assets panel \u2192 New timeline does: a composite with one video track at the project's canvas size and fps, plus its composite item in the bin. name defaults to the first free \"Timeline N\"; names need not be unique, and rename_asset renames it later. open (default true) opens its tab and makes it the timeline every other op edits (tracks, clips, inspect), as open_composite does; open:false leaves the edited timeline as it was. One undo step; redo recreates it without reopening it. It uses the project's canvas, fps and export settings, and export_video still renders only the main timeline. Returns {sequence, asset, name, activeSequence}.", "schema": { "properties": { "folder": { "description": "Bin folder id (or unique name) for its bin item; \"\" for the bin root. Default: the folder the user is viewing", "type": "string" }, "name": { "description": "Timeline name (default: the first free \"Timeline N\")", "type": "string" }, "open": { "description": "Open its tab and edit it (default true)", "type": "boolean" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "close_timeline", "toolbox": "timeline", "description": "When: Close a timeline's tab. Close a composite timeline's tab (sequence from list_composites or new_timeline). When it is the timeline being edited, every op goes back to the main timeline. The timeline, its clips and its bin item stay; open_composite({sequence}) reopens it. The main timeline has no tab. A sequence whose tab isn't open is a no-op (closed:false). Not an undo step, and never makes the project unsaved on its own. Returns {closed, activeSequence}.", "schema": { "properties": { "sequence": { "description": "Sequence id from list_composites", "type": "string" } }, "required": [ "sequence" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "flatten_composite", "toolbox": "timeline", "description": "When: Render a composite clip to a video file. Render the composite clip's range to a new video file, add it to the bin and swap the clip (and audio separated from it) over to it. Async: returns {started:true}; poll export_status. Transparency around the composite's content becomes the project background.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "merge_clips", "toolbox": "timeline", "description": "When: Join adjacent clips, or several subtitle clips into one. Merge the selected adjacent clips on one track back into a single clip. Acts on the current selection \u2014 select the clips first; fails bad_args when the selection cannot be merged. Two or more subtitle clips on one track (select_clips) always merge, gaps allowed: the result spans first start to last end, holds every cue, and keeps the earliest clip's style and transform. Pass track instead to merge every subtitle clip on that track, ignoring the selection.", "schema": { "properties": { "track": { "description": "Merge every subtitle clip on this track", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "align_clip_left", "toolbox": "timeline", "description": "When: Snap start to zero. Move the selected clip so it starts at 0. Acts on the current selection \u2014 call select_clip first.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "align_clip_right", "toolbox": "timeline", "description": "When: Snap end to duration. Move the selected clip so it ends at the project duration. Acts on the current selection \u2014 call select_clip first.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_clip_name", "toolbox": "timeline", "description": "When: Rename a clip. Set the clip's display name on the timeline. Cosmetic; does not touch the bin asset.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "name": { "description": "New name, must be non-empty", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "name" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_clip_label", "toolbox": "timeline", "description": "When: Tag a clip with a stable label. Set the clip's label (empty clears it): a tag that survives renames, shown in the inspector. A split or duplicate gives the copy the next number (intro, intro.2, intro.3); the original keeps its label. Find clips by it with find_clips.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "label": { "description": "Label; empty clears it", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "label" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "find_clips", "toolbox": "timeline", "description": "When: Search clips by label or name. Clips matching every filter given: label (exact; an unnumbered label also finds its numbered copies; \"\" finds unlabelled clips), name (case-insensitive substring), asset, track, kind. Returns clips:[{id, track, label, name, kind, start, duration, ...}] in timeline order.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "kind": { "description": "Clip kind, e.g. video, audio, text", "type": "string" }, "label": { "description": "Label, e.g. intro", "type": "string" }, "name": { "description": "Part of the name", "type": "string" }, "track": { "description": "Track index", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "add_bookmark", "toolbox": "timeline", "description": "When: Mark a time. Add a bookmark at `at` seconds. Does not return its index \u2014 bookmarks are addressed by position in inspect({detail:true}).bookmarks, so re-read that before removing or updating.", "schema": { "properties": { "at": { "description": "Seconds", "type": "number" }, "label": { "description": "Label", "type": "string" } }, "required": [ "at" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "remove_bookmark", "toolbox": "timeline", "description": "When: Remove a marker by its position in the bookmark list. Remove a bookmark by its position in inspect({detail:true}).bookmarks. Later bookmarks shift down one index.", "schema": { "properties": { "index": { "description": "0-based position in inspect({detail:true}).bookmarks \u2014 bookmarks have no stable id, so re-read that list before using this and after any bookmark is removed.", "type": "integer" } }, "required": [ "index" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "update_bookmark", "toolbox": "timeline", "description": "When: Move or relabel an existing marker. Update a bookmark's time and/or label. Pass BOTH at and label: an omitted field is read back from the existing bookmark, and an out-of-range index is not checked on that path. Verify the index against inspect({detail:true}).bookmarks first.", "schema": { "properties": { "at": { "description": "Seconds; omitted keeps the current time", "type": "number" }, "index": { "description": "0-based position in inspect({detail:true}).bookmarks \u2014 bookmarks have no stable id, so re-read that list before using this and after any bookmark is removed.", "type": "integer" }, "label": { "description": "Label; omitted keeps the current label", "type": "string" } }, "required": [ "index" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "go_to_bookmark", "toolbox": "timeline", "description": "When: Seek to bookmark. Move the playhead to a bookmark, addressed by its position in inspect({detail:true}).bookmarks.", "schema": { "properties": { "index": { "description": "0-based position in inspect({detail:true}).bookmarks \u2014 bookmarks have no stable id, so re-read that list before using this and after any bookmark is removed.", "type": "integer" } }, "required": [ "index" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "freeze_frame", "toolbox": "timeline", "description": "When: Hold current frame. Insert a still of the frame under the playhead as a new clip. Uses the playhead, not a clip argument and not the selection \u2014 seek first. Returns {id, track, index} of the new still.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "get_camera_state", "toolbox": "timeline", "description": "When: Read the scene camera's pose at a time. The camera clip covering `at` (default the playhead), or `clip`, as it is posed then, keyframes included. Returns {active, at, clip, track, x, y, z, rotationX, rotationY, rotation, aimAtTarget, poi:[x,y,z], zoom, focalLength, fov, eye:[x,y,z]}; active:false when no camera covers that time. Units: x/y/z (and eye) are the camera's position in the 3D world: canvas px from the top-left, y down, +z away from the viewer, so a camera at rest has eye [w/2, h/2, -zoom]. rotationX/Y/rotation are pitch/yaw/roll in degrees, right-handed in that world and applied yaw first (+rotationX looks up, +rotationY looks toward +x, +rotation rolls clockwise on screen); the horizon stays level when roll is 0. With aimAtTarget the camera faces poi (a world point, level horizon) and the rotation is an extra offset in the camera's own frame. zoom is the distance in px at which the canvas fills the frame; focalLength is the same value in mm on a 36 x 24 mm film back and fov the vertical field of view in degrees (set zoom, i.e. perspective, to change any of them). Read-only.", "schema": { "properties": { "at": { "description": "Timeline seconds (default: the playhead)", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "reset_camera", "toolbox": "timeline", "description": "When: Return the scene camera to rest. Clears the camera clip's position, rotation and point of interest, keyframes included, and switches aimAtTarget off, and clears the zoom (perspective) back to its default, so it looks exactly like no camera. One undo step. `clip` defaults to the camera covering the playhead; not_found when there is no camera (add_camera).", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "camera_look_at", "toolbox": "timeline", "description": "When: Aim the scene camera at a clip or point. Turns the camera in place (its eye stays put) so `target` lands at the canvas centre with a level horizon: rotationX/rotationY are set and the roll is reset to 0; zoom is kept. With aimAtTarget:true the camera instead stays locked on the target (a two-node camera): the point of interest is written (anchorX/Y/Z) and the rotation offset cleared; aimAtTarget:false switches that off again. target is a clip id (its centre in the 3D world, including z; transform-layer parents are ignored) or a world point {x,y,z} in canvas px from the top-left (y down, +z away from the viewer; z defaults to 0). `at` (default the playhead) is where the aim is computed and, with keyframe:true, where keys are written; a property that is already animated always takes a key, otherwise the plain value is written (like set_transform). One undo step. Returns the new pose and eye. Needs a camera: add_camera first. For a path over several keys, write the eye with set_keyframes and interpolation \"smooth\".", "schema": { "properties": { "aimAtTarget": { "description": "true = lock on the target via the point of interest; false = free rotation (default: unchanged)", "type": "boolean" }, "at": { "description": "Timeline seconds (default: the playhead)", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "keyframe": { "description": "Write keyframes at `at` instead of plain values", "type": "boolean" }, "target": { "description": "Clip id to look at, or a world point {x,y,z} in canvas px from the canvas top-left (+z away)", "type": [ "string", "object" ] }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "target" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "camera_move", "toolbox": "timeline", "description": "When: Animate a classic camera move. Writes a start and an end keyframe on the camera props the move changes, from the pose at `start`; one undo step. Moves and `amount` (default): dolly_in/dolly_out along the view direction (px, 300); truck_left/truck_right sideways (px, 200); crane_up/crane_down (px, 200); pan_left/pan_right and tilt_up/tilt_down turn the camera in place (degrees, 20 and 15); orbit_left/orbit_right circle `target` about the vertical axis while keeping it centred (degrees, 45; target is a clip id or {x,y,z} world point, default the canvas centre); push_in/pull_out zoom the lens in or out (zoom x(1+amount) or x(1-amount), a fraction 0..0.9, default 0.35) without moving the eye; use dolly to move closer. Orbit keys interpolate pose linearly, so an orbit past ~90 degrees is a chord rather than an arc; split it. easing is ease (default) or linear. start..end must lie inside the camera clip (default: the one covering `start`). Needs add_camera first.", "schema": { "properties": { "amount": { "description": "Size: px, degrees or lens fraction depending on the move", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "easing": { "description": "Interpolation between the two keys", "enum": [ "ease", "linear" ], "type": "string" }, "end": { "description": "Timeline seconds the move ends", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "move": { "description": "The move", "enum": [ "dolly_in", "dolly_out", "push_in", "pull_out", "pan_left", "pan_right", "tilt_up", "tilt_down", "truck_left", "truck_right", "crane_up", "crane_down", "orbit_left", "orbit_right" ], "type": "string" }, "start": { "description": "Timeline seconds the move begins", "type": "number" }, "target": { "description": "Orbit centre: clip id or {x,y,z} world point (default the canvas centre)", "type": [ "string", "object" ] }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "move", "start", "end" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_ripple", "toolbox": "timeline", "description": "When: Ripple delete and trim. Project setting. When on, deleting or shortening a clip pulls later clips on that track left to close the hole. Off (default): every delete leaves a gap. Not undoable.", "schema": { "properties": { "enabled": { "description": "Ripple later clips into holes", "type": "boolean" } }, "required": [ "enabled" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "close_gap", "toolbox": "timeline", "description": "When: Close one hole on a track. Shift every clip on `track` that starts at or after `at` left by the width of the gap whose left edge is `at` (typically the end of the preceding clip, or 0 for the hole before the first clip, which moves the track to the start of the timeline). Linked A/V partners follow. With overlap off this is how you delete without leaving a hole, or how you put an intro at the front: place then close_gap behind. When moving several clips toward zero with overlap off, sequence back-to-front or each move is pushed into the clip ahead. With all_tracks:true, every track that is empty over the gap closes it too, so unlinked audio, titles and layers keep their timing. A track with a clip in the gap stays (with the tracks linked to it), as does a locked track. The reply lists moved_tracks, skipped_tracks:[{track, reason: clip_in_gap|locked|linked, blocker}] and moved:[{id, start}]. Refused (nothing changes) when this track's own group cannot close, or when it is an adjustment track. `at` within a millisecond of a clip's end counts as that end.", "schema": { "properties": { "all_tracks": { "description": "Also close the gap on every other track that is empty over it", "type": "boolean" }, "at": { "description": "Left edge of the hole, timeline seconds", "type": "number" }, "track": { "description": "Track index", "type": "integer" } }, "required": [ "track", "at" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "close_gaps", "toolbox": "timeline", "description": "When: Close every hole on a track. Close every gap on `track` within [from, to] (seconds; default the whole track) in one undo step: the hole before the first clip and each hole between clips, latest first. Later clips move left, together with every track joined to this one by linked clips, so A/V stays in sync. A gap that a clip on such a track sits in (or whose close would drag an earlier linked clip along, or past 0) is left open and listed in skipped with that clip; a locked track or an adjustment track refuses the op. Returns closed:[{at, width}] and skipped:[{at, width, blocker}] at their positions before the op, and moved:[{id, start}]. all_tracks:true closes each gap on every track that is empty over it as well; moved_tracks and skipped_tracks:[{track, at, reason, blocker}] are added to the reply.", "schema": { "properties": { "all_tracks": { "description": "Also close each gap on every other track that is empty over it", "type": "boolean" }, "from": { "description": "Only gaps starting at or after this time (seconds)", "type": "number" }, "to": { "description": "Only gaps ending at or before this time (seconds)", "type": "number" }, "track": { "description": "Track index", "type": "integer" } }, "required": [ "track" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_snap", "toolbox": "timeline", "description": "When: Turn magnetic snapping on or off. Editor snap-to-clips/beats/bookmarks. Not undoable.", "schema": { "properties": { "enabled": { "description": "Snap on", "type": "boolean" } }, "required": [ "enabled" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "select_clips", "toolbox": "timeline", "description": "When: Select several clips. Replace the selection with the given clips (UUIDs). Linked A/V partners are included.", "schema": { "properties": { "clips": { "description": "Clip UUIDs to select", "items": { "description": "Clip UUID", "type": "string" }, "type": "array" } }, "required": [ "clips" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_transform", "toolbox": "canvas", "description": "When: Position, size, rotate, fade a clip. Set canvas transform. Anchor model: positionX/positionY is where the clip's anchor lands on the canvas (project px, 0,0 = top-left; default the canvas centre, which is the clip's centre while the anchor is unset); scaleX/scaleY (or `scale` for both) resize the clip about its anchor, 1 = its fit size (frameW x frameH, read-only in the reply), so scaling never moves positionX/Y; rotation turns about the anchor. The reply's `box` {x,y,w,h} is the derived, unrotated on-canvas rect and cannot be written. 3D follows After Effects: x right, y down, z AWAY from the viewer (right-handed), and rotations pivot on the anchor point. Omitted fields are left unchanged. IMPORTANT: if the property is already animated (2+ keys), or autoKey is on, the write creates/updates a keyframe at the CURRENT PLAYHEAD (or at `at`, timeline seconds) instead of setting a constant value; that time must be inside the clip, else bad_args and nothing is written. A property with 0 or 1 key just takes the value. Use set_property_keyframes_enabled(false) or remove the keys for an unconditional value. Fails bad_args on audio clips and when no transform field is supplied.", "schema": { "properties": { "anchorX": { "description": "Anchor X in frame pixels (unscaled, from the frame's left edge): the pivot for scale and rotation, and the point positionX/Y places. Unset = the frame centre", "type": "number" }, "anchorY": { "description": "Anchor Y in frame pixels from the frame's top edge. Unset = the frame centre", "type": "number" }, "anchorZ": { "description": "Anchor point Z in pixels out of the clip's plane (+ away from the viewer; default 0)", "type": "number" }, "at": { "description": "Timeline seconds for the keyframe when the write keys (default: playhead); must be inside the clip", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "depth_occlude": { "description": "Occlude by depth: this 3D layer hides and is hidden by other depth-occluding 3D layers (model and procedural clips) by z instead of track order. Needs a 3D layer with blend mode Normal; set it on every clip that should sort", "type": "boolean" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "layer3d": { "description": "Make the clip a 3D layer (true) or flat (false). Writing any of the 3D fields below turns it on; false resets them to 0 and the default perspective", "type": "boolean" }, "opacity": { "description": "Opacity", "maximum": 1, "minimum": 0, "type": "number" }, "perspective": { "description": "Eye distance from the canvas centre in pixels; smaller = stronger perspective. The default follows the project height (a 50 mm lens on a 36 mm film back: 2250 for a 1080 px canvas)", "type": "number" }, "positionX": { "description": "Canvas x in pixels where the clip's anchor lands (default: canvas centre)", "type": "number" }, "positionY": { "description": "Canvas y in pixels where the clip's anchor lands (default: canvas centre)", "type": "number" }, "rotation": { "description": "Degrees clockwise", "type": "number" }, "rotationX": { "description": "Rotation about X in degrees (right-handed; + tips the top edge toward the viewer)", "type": "number" }, "rotationY": { "description": "Rotation about Y in degrees (right-handed; + swings the right edge toward the viewer)", "type": "number" }, "scale": { "description": "Uniform scale: sets scaleX and scaleY to this value; an explicit scaleX/scaleY wins", "type": "number" }, "scaleX": { "description": "Horizontal scale factor, 1 = fit size (not source resolution); scales about the anchor", "type": "number" }, "scaleY": { "description": "Vertical scale factor, 1 = fit size; scales about the anchor", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "z": { "description": "Position Z in pixels; + away from the viewer, - toward it (After Effects' convention)", "type": "number" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "reset_transform", "toolbox": "canvas", "description": "When: Reset a clip's position, size and rotation. Reset position (canvas centre), scale (1), rotation, 3D rotation/position Z/anchor/perspective (and the 3D layer switch), opacity, and flips to defaults. Video, image and vector clips return to their own shape fitted and centred on the canvas; other clips fill the canvas.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_flip", "toolbox": "canvas", "description": "When: Mirror a clip. Set horizontal and/or vertical flip. Omitted axes keep their current value. At least one of flipH/flipV is required.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "flipH": { "description": "Flip horizontally", "type": "boolean" }, "flipV": { "description": "Flip vertically", "type": "boolean" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "get_clip_crop", "toolbox": "canvas", "description": "When: Read which part of the source a clip shows. Read a video or image clip's crop. Returns crop: {x, y, w, h} as fractions 0..1 of the displayed (rotation-corrected) source, angle (straighten, degrees clockwise), cropped false for the full, unturned frame, and, when the source size is known, sourceWidth/sourceHeight, the same window in source pixels, and covered (true when every point of the window shows picture, false when a straighten leaves transparent corners in it). The top-level positionX/positionY/scaleX/scaleY/frameW/frameH/box are the clip's canvas placement, not the crop.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "set_clip_crop", "toolbox": "canvas", "description": "When: Crop a clip to part of its source. Crop a video or image clip to a window of its source, undoable like the inspector's crop. units normalized (default) takes fractions 0..1; pixels takes source pixels and needs the source size (see get_clip_crop). Omitted fields keep their current value; reset: true restores the full, unturned frame. angle straightens: the picture turns clockwise by that many degrees about its centre (negative = anticlockwise) and the window is cut from the turned picture, so a tilted horizon can be levelled. When angle is given without x/y/w/h, the window is refit to stay inside the turned picture: it keeps its centre and aspect and shrinks only as much as it must (fit, default true then; false keeps the window as is and leaves transparent corners). With an explicit window, fit defaults to false; fit: true fits that window. Turning back to 0 does not regrow the window: pass the window or reset. Omit angle to keep the current one. The window is clamped inside the source. The clip's frame (its fit size) follows the new crop's aspect, the way the inspector does it. Does not crop the project canvas (apply_canvas_crop). Returns crop as get_clip_crop does.", "schema": { "properties": { "angle": { "description": "Straighten, degrees clockwise", "maximum": 180, "minimum": -180, "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "fit": { "description": "Refit the window inside the turned picture; default true when only angle is given", "type": "boolean" }, "h": { "description": "Height, > 0", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "reset": { "description": "Restore the full frame; ignores x/y/w/h/angle/fit", "type": "boolean" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "units": { "default": "normalized", "description": "Units of x/y/w/h", "enum": [ "normalized", "pixels" ], "type": "string" }, "w": { "description": "Width, > 0", "type": "number" }, "x": { "description": "Left edge", "type": "number" }, "y": { "description": "Top edge", "type": "number" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_blend_mode", "toolbox": "canvas", "description": "When: Blend a clip onto the layers below. Set how the clip composites over the layers below it. Unrecognised values silently fall back to normal.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "mode": { "description": "Blend mode; unknown values fall back to normal", "enum": [ "normal", "multiply", "screen", "overlay", "add", "darken", "lighten", "colorBurn", "linearBurn", "darkerColor", "colorDodge", "lighterColor", "softLight", "hardLight", "vividLight", "linearLight", "pinLight", "hardMix", "difference", "exclusion", "subtract", "divide", "hue", "saturation", "color", "luminosity" ], "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "mode" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_mask", "toolbox": "canvas", "description": "When: Show only part of a clip: rectangle, ellipse, freeform, matte. Set the clip's mask. This REPLACES the whole mask \u2014 it is not a patch. Every omitted key reverts to its default, and omitting `shape` turns the mask off entirely, so read the current mask from inspect({clips:true,detail:true}) and send it back with your changes merged in. lockAspect is the exception: omitted, the clip's current aspect lock is kept. To turn clips themselves into a mask, see use_as_mask and convert_clip_to_mask.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "mask": { "description": "The whole mask; every omitted key reverts to its default (lockAspect excepted: it is kept) and omitting shape turns the mask off", "properties": { "enabled": { "description": "Mask on/off without losing it (default true)", "type": "boolean" }, "feather": { "description": "Alpha edge blur in pixels (default 0)", "type": "number" }, "h": { "description": "Height, fraction of canvas (default 0.6)", "maximum": 1, "minimum": 0, "type": "number" }, "invert": { "description": "Invert coverage (default false)", "type": "boolean" }, "lockAspect": { "description": "Editing only: the corner handles and the inspector keep w:h; rendering ignores it. Omitted: the clip's current lock is kept", "type": "boolean" }, "mediaChannel": { "description": "matte/media only: which channel is the coverage", "enum": [ "luma", "alpha" ], "type": "string" }, "mediaFgrPath": { "description": "matte/media only: foreground pass of a cutout, when one exists", "type": "string" }, "mediaFit": { "description": "matte/media only: how the matte fills the clip", "enum": [ "stretch", "fit", "fill" ], "type": "string" }, "mediaLoop": { "description": "matte/media only: loop a matte shorter than the clip", "type": "boolean" }, "mediaPath": { "description": "matte/media only: absolute path of the matte video or image", "type": "string" }, "mediaSrcOffsetUs": { "description": "matte/media only: source offset in microseconds", "type": "integer" }, "mediaTimeBase": { "description": "matte/media only: index frames by the masked clip's source time (host) or from the mask's own start (adjustment)", "enum": [ "host", "adjustment" ], "type": "string" }, "name": { "description": "Display name", "type": "string" }, "op": { "description": "How the mask combines (default add)", "enum": [ "add", "subtract", "intersect" ], "type": "string" }, "points": { "description": "freeform only: [{x,y}, \u2026] as inspect emits it, or [[x,y], \u2026]; normalised 0..1", "items": { "type": [ "array", "object" ] }, "type": "array" }, "rotation": { "description": "Degrees clockwise (default 0)", "type": "number" }, "roundness": { "description": "rectangle only: corner rounding, 0 sharp to 1 pill (default 0)", "maximum": 1, "minimum": 0, "type": "number" }, "sequenceId": { "description": "sequence only: id of the nested sequence whose render is the matte; mediaChannel and mediaFit apply", "type": "string" }, "shape": { "description": "Mask shape. Omitted or unrecognised = none, i.e. mask off.", "enum": [ "none", "rectangle", "ellipse", "star", "heart", "bars", "split", "freeform", "media", "matte", "sequence" ], "type": "string" }, "w": { "description": "Width, fraction of canvas (default 0.6)", "maximum": 1, "minimum": 0, "type": "number" }, "x": { "description": "Center x, fraction of canvas (default 0.5)", "maximum": 1, "minimum": 0, "type": "number" }, "y": { "description": "Center y, fraction of canvas (default 0.5)", "maximum": 1, "minimum": 0, "type": "number" } }, "type": "object" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "mask" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "use_as_mask", "toolbox": "canvas", "description": "When: Make clips a live mask over the track below. Use clips as a live mask, as the timeline's Use as mask (nested timeline) does: the clips move (with their linked partners) into a new composite timeline, and a mask clip over the same span on the first video track below the lowest of them renders that timeline live (its alpha), so it masks that track: a title or shape becomes a window onto the footage below. Main timeline only. Video, image, text, shape, vector and PDF clips; composites, audio, subtitles, adjustments, 3D and procedural clips are refused (type_mismatch), and so are clips with no video track below (bad_args). One undo step. Returns {sequence, asset, mask_clip}. open_composite({sequence}) edits what the mask shows. To change the mask (mediaChannel alpha|luma, fit, invert), read the whole mask from inspect, change the field and send it all back to set_mask: a partial mask turns it off. inspect shows sequence on the mask clip's row as sequenceId.", "schema": { "properties": { "clips": { "description": "The clips that become the mask, on the main timeline", "items": { "description": "Clip UUID", "type": "string" }, "type": "array" } }, "required": [ "clips" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "convert_clip_to_mask", "toolbox": "canvas", "description": "When: Turn a video or image clip into a matte below. Replace a video or image clip (and its linked audio) with a luma matte over the same span on the first video track below it, as the timeline's Convert to mask does: bright areas of the picture let the track below show. Refused for a retimed or reversed clip and with no video track below (bad_args with the reason), and for other clip kinds (type_mismatch; use_as_mask takes titles and shapes). One undo step. Returns {mask_clip}.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "set_fade", "toolbox": "canvas", "description": "When: Fade a clip's audio/video in or out over N seconds. Set fade-in and fade-out lengths in seconds. Omitted ends keep their current value. A fade reveals the canvas background (the project background colour or blur), not black. Use set_fade_curve to change the fade's shape.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "in": { "description": "Fade in seconds", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "out": { "description": "Fade out seconds", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_fade_curve", "toolbox": "canvas", "description": "When: Make a fade linear, smooth, equal-power or custom. Set the shape of this clip's fades, either by preset (`curve`) or by explicit control points (`points`, which selects the custom curve). Exactly one of the two is required; when both are sent, points wins. Passing points opens and closes a transient curve session and closes any fade-curve session already open. `edge` picks the fade-in, the fade-out or both (default both); each edge keeps its own curve.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "curve": { "description": "Fade curve preset. Unknown values fall back to smooth.", "enum": [ "linear", "smooth", "equalPower", "custom" ], "type": "string" }, "edge": { "description": "Which fade to shape (default both)", "enum": [ "in", "out", "both" ], "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "points": { "description": "Custom curve points, at least two. Selects the custom curve.", "items": { "properties": { "g": { "description": "Gain 0..1", "type": "number" }, "t": { "description": "Time 0..1 across the fade", "type": "number" } }, "type": "object" }, "type": "array" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_clip_speed", "toolbox": "canvas", "description": "When: Play a whole clip faster or slower (ramps: set_speed_curve). Set a single playback rate for the whole clip (1.0 = normal, 2.0 = double speed), 0.25..4. Keeps the timeline duration and scales the source span (srcOut = srcIn + duration \u00d7 speed); the duration only changes when that span would run past the end of the source, where it becomes (source end \u2212 srcIn) / speed. So an untrimmed clip shrinks to fit when sped up, and a trimmed one plays further into its media. Works on video, audio and composite clips (a composite plays its nested timeline at that rate); other clips fail bad_args. Clears any speed curve \u2014 use set_speed_curve for a ramp.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "speed": { "description": "Playback rate, e.g. 0.5 half speed, 2.0 double", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "speed" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_clip_reverse", "toolbox": "canvas", "description": "When: Play a clip backwards. Play the clip backwards. For video this kicks off an async proxy render \u2014 poll inspect({detail:true}).jobs.reverseRender.{active,progress,status} until active is false before exporting, and cancel it with cancel_reverse_render.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "reverse": { "description": "Reversed", "type": "boolean" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "reverse" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_clip_loop", "toolbox": "canvas", "description": "When: Repeat a clip's trimmed range. Loop a video or audio clip: its In/Out range (srcIn..srcOut) repeats for as long as the clip runs, so its duration is no longer limited by the source; compact clips then show loop:true. Lengthen or shorten it with set_duration; set_trim changes the repeated range and keeps the duration. Turning loop off cuts the clip back to one pass of the range from its head. Fails bad_args on other clip kinds and on clips with a speed curve.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "loop": { "description": "Loop on or off", "type": "boolean" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "loop" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_clip_enabled", "toolbox": "canvas", "description": "When: Enable or disable a clip. A disabled clip stays on the timeline (shown striped) but is skipped by preview and export, picture and sound; compact clips then show enabled:false. Its linked audio/video partners follow, and the change is one undo step.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "enabled": { "description": "Enabled (true) or disabled (false)", "type": "boolean" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "enabled" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "cancel_reverse_render", "toolbox": "canvas", "description": "When: Stop reverse proxy. Cancel the in-flight reverse proxy render. Returns ok even when nothing was running; confirm with inspect({detail:true}).jobs.reverseRender.active.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_animation", "toolbox": "canvas", "description": "When: Slide/zoom/pop a clip on entrance or exit. Set the clip's entrance (animIn) or exit (animOut) animation. Only the supplied fields change. Animations only move the clip; opacity is the fade (set_fade). Setting kind to fade clears the animation and turns on that edge's fade instead.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "curve": { "description": "Fade curve used when kind is fade", "enum": [ "linear", "smooth", "equalPower", "custom" ], "type": "string" }, "duration": { "description": "Seconds", "type": "number" }, "ease": { "description": "Easing; unknown values fall back to easeOut", "enum": [ "linear", "easeInOut", "easeOut", "back" ], "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "kind": { "description": "Animation kind: none, fade (turns on the edge fade instead), slideUp, slideDown, slideLeft, slideRight, zoomIn, zoomOut, pop, spinCW, spinCCW, bounce, or an animation package id from list_animations", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "which": { "description": "Which end of the clip to animate", "enum": [ "animIn", "animOut" ], "type": "string" } }, "required": [ "which" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_shape_style", "toolbox": "canvas", "description": "When: Restyle a shape clip's shading layers or geometry. Patch a shape clip. A shape's look is a shading stack like a caption's (fill / stroke / shadow / glow / extrude layers, each solid, gradient, texture or effect painted): replace it with `layers`, patch one with `layer`, or use the legacy flat fill/stroke keys, which land on the \"fill\" and \"stroke\" layers. Only supplied keys change. Applies to shape clips only \u2014 silently does nothing on any other clip type. Numeric fields are validated against the ranges in the schema, and each geometry knob is read by a subset of shape kinds only. Every layer field and geometry knob is keyframable as shape. (see set_keyframe).", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "style": { "description": "Partial style patch; only supplied keys change. Each geometry knob is read by a subset of shape kinds", "properties": { "cornerRadius": { "description": "Corner px: native on the rect family, rounds the corners of any other kind", "maximum": 2000, "minimum": 0, "type": "number" }, "fill": { "description": "Legacy: fill layer colour #RRGGBB or #AARRGGBB (also the first gradient stop)", "type": "string" }, "fillKind": { "description": "Legacy: none hides the fill layer; solid / linear / radial set its paint", "enum": [ "none", "solid", "linear", "radial" ], "type": "string" }, "fillSecondary": { "description": "Legacy: gradient end stop colour", "type": "string" }, "gradientAngle": { "description": "Legacy: degrees; 0 = left to right", "type": "number" }, "headSize": { "description": "Head size: arrow, double-arrow, block-arrow, chevron; banner notch", "maximum": 0.9, "minimum": 0.05, "type": "number" }, "innerRatio": { "description": "Inner radius: star, burst", "maximum": 0.95, "minimum": 0.05, "type": "number" }, "kind": { "description": "Shape catalog id (circle is an ellipse with a square box); changes the geometry, keeps the layers", "enum": [ "rectangle", "rounded-rectangle", "square", "ellipse", "circle", "triangle", "right-triangle", "diamond", "pentagon", "hexagon", "octagon", "parallelogram", "trapezoid", "arrow", "double-arrow", "block-arrow", "curved-arrow", "chevron", "speech-bubble", "speech-bubble-rect", "thought-bubble", "callout", "star", "burst", "lightning-bolt", "cloud", "heart", "cross", "banner" ], "type": "string" }, "layer": { "description": "Partial patch of one existing layer, addressed by id or index", "properties": { "blend": { "description": "Blend mode", "enum": [ "normal", "multiply", "screen", "overlay", "add", "darken", "lighten", "colorBurn", "linearBurn", "darkerColor", "colorDodge", "lighterColor", "softLight", "hardLight", "vividLight", "linearLight", "pinLight", "hardMix", "difference", "exclusion", "subtract", "divide", "hue", "saturation", "color", "luminosity" ], "type": "string" }, "blur": { "description": "Shadow blur / glow radius in px", "type": "number" }, "dash": { "description": "Stroke dash pattern", "enum": [ "solid", "dash", "dot", "dashdot" ], "type": "string" }, "dashOffset": { "description": "Dash phase in stroke widths (keyframe for marching ants)", "type": "number" }, "enabled": { "description": "On/off", "type": "boolean" }, "extrudeAngle": { "description": "Extrude direction in degrees", "type": "number" }, "extrudeDarken": { "description": "How much the far end darkens 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "extrudeSteps": { "description": "Extrude copies", "type": "integer" }, "id": { "description": "Stable layer id (lowercase); minted when omitted", "type": "string" }, "index": { "description": "Layer index, when no id", "type": "integer" }, "join": { "description": "Stroke corner join (default round)", "enum": [ "miter", "round", "bevel" ], "type": "string" }, "kind": { "description": "Layer kind", "enum": [ "fill", "stroke", "shadow", "glow", "extrude" ], "type": "string" }, "knockout": { "description": "A fill that punches through the layers beneath (hollow)", "type": "boolean" }, "miterLimit": { "description": "Miter join limit, 1-100 (default 4); lower it to cut off spikes on sharp corners", "type": "number" }, "offsetX": { "description": "px at pixelSize", "type": "number" }, "offsetY": { "description": "px at pixelSize", "type": "number" }, "opacity": { "description": "0..1", "maximum": 1, "minimum": 0, "type": "number" }, "paint": { "properties": { "color": { "description": "Solid colour, or the tint for texture/effect", "type": "string" }, "effect": { "properties": { "id": { "description": "Shader effect; list_text_effects has each one's params", "enum": [ "shine", "shimmer", "neon-pulse", "glitch", "chrome", "dissolve" ], "type": "string" }, "params": { "description": "{id: {type, value}} typed params \u2014 the type (scalar|color|text) and ids come from list_text_effects; a bare number is NOT accepted here. Scalar params keyframe as layer..effect.", "type": "object" } }, "type": "object" }, "gradient": { "properties": { "angle": { "description": "Degrees: 0 = left\u2192right, 90 = top\u2192bottom", "type": "number" }, "center": { "description": "[x, y] radial/sweep centre as box fractions (default [0.5, 0.5]; keyframable as gradient.center.x/y)", "items": { "type": "number" }, "type": "array" }, "kind": { "description": "Gradient shape", "enum": [ "linear", "radial", "sweep" ], "type": "string" }, "offset": { "description": "Shift along the axis in box widths (keyframable)", "type": "number" }, "offsetSpeed": { "description": "Box widths per second: a moving gradient", "type": "number" }, "oklab": { "description": "Interpolate in OKLab", "type": "boolean" }, "repeat": { "description": "Tile instead of clamp", "type": "boolean" }, "scale": { "description": "Axis length multiplier", "type": "number" }, "space": { "description": "Box the gradient maps onto (text only; a shape always uses its own box)", "enum": [ "block", "line", "word", "glyph", "accentRun" ], "type": "string" }, "stops": { "description": "Colour stops in order; list_gradient_presets has ready-made sets", "items": { "properties": { "color": { "description": "#RRGGBB or #AARRGGBB", "type": "string" }, "pos": { "description": "Position along the axis", "maximum": 1, "minimum": 0, "type": "number" } }, "type": "object" }, "type": "array" } }, "type": "object" }, "kind": { "description": "Paint source", "enum": [ "solid", "gradient", "texture", "effect" ], "type": "string" }, "texture": { "properties": { "angle": { "description": "Degrees", "type": "number" }, "offset": { "description": "[x, y] shift as box fractions", "items": { "type": "number" }, "type": "array" }, "path": { "description": "Absolute image path", "type": "string" }, "scale": { "description": "Scale", "type": "number" }, "tile": { "description": "Tile (else cover the block)", "type": "boolean" } }, "type": "object" } }, "type": "object" }, "scope": { "description": "Which words the layer paints (text only)", "enum": [ "all", "base", "accent" ], "type": "string" }, "sketchDeviation": { "description": "Hand-drawn jitter amount in px", "type": "number" }, "sketchLength": { "description": "Hand-drawn jitter segment length in px; 0 = off", "type": "number" }, "sketchSeed": { "description": "Jitter seed", "type": "integer" }, "spread": { "description": "Shadow/glow dilation in px", "type": "number" }, "strokeAlign": { "description": "Where a stroke sits on the outline (default outside on text, inside on shapes)", "enum": [ "center", "outside", "inside" ], "type": "string" }, "trimEnd": { "description": "Stroke write-on end 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "trimStart": { "description": "Stroke write-on start 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "width": { "description": "Stroke width or extrude depth in px", "type": "number" } }, "type": "object" }, "layers": { "description": "The whole shading stack, replaced as given; layers[0] is drawn first (back-most). A fresh shape has a fill (id \"fill\") under a stroke (id \"stroke\"). Use `layer` to patch one.", "items": { "description": "A shading layer", "properties": { "blend": { "description": "Blend mode", "enum": [ "normal", "multiply", "screen", "overlay", "add", "darken", "lighten", "colorBurn", "linearBurn", "darkerColor", "colorDodge", "lighterColor", "softLight", "hardLight", "vividLight", "linearLight", "pinLight", "hardMix", "difference", "exclusion", "subtract", "divide", "hue", "saturation", "color", "luminosity" ], "type": "string" }, "blur": { "description": "Shadow blur / glow radius in px", "type": "number" }, "dash": { "description": "Stroke dash pattern", "enum": [ "solid", "dash", "dot", "dashdot" ], "type": "string" }, "dashOffset": { "description": "Dash phase in stroke widths (keyframe for marching ants)", "type": "number" }, "enabled": { "description": "On/off", "type": "boolean" }, "extrudeAngle": { "description": "Extrude direction in degrees", "type": "number" }, "extrudeDarken": { "description": "How much the far end darkens 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "extrudeSteps": { "description": "Extrude copies", "type": "integer" }, "id": { "description": "Stable layer id (lowercase); minted when omitted", "type": "string" }, "join": { "description": "Stroke corner join (default round)", "enum": [ "miter", "round", "bevel" ], "type": "string" }, "kind": { "description": "Layer kind", "enum": [ "fill", "stroke", "shadow", "glow", "extrude" ], "type": "string" }, "knockout": { "description": "A fill that punches through the layers beneath (hollow)", "type": "boolean" }, "miterLimit": { "description": "Miter join limit, 1-100 (default 4); lower it to cut off spikes on sharp corners", "type": "number" }, "offsetX": { "description": "px at pixelSize", "type": "number" }, "offsetY": { "description": "px at pixelSize", "type": "number" }, "opacity": { "description": "0..1", "maximum": 1, "minimum": 0, "type": "number" }, "paint": { "properties": { "color": { "description": "Solid colour, or the tint for texture/effect", "type": "string" }, "effect": { "properties": { "id": { "description": "Shader effect; list_text_effects has each one's params", "enum": [ "shine", "shimmer", "neon-pulse", "glitch", "chrome", "dissolve" ], "type": "string" }, "params": { "description": "{id: {type, value}} typed params \u2014 the type (scalar|color|text) and ids come from list_text_effects; a bare number is NOT accepted here. Scalar params keyframe as layer..effect.", "type": "object" } }, "type": "object" }, "gradient": { "properties": { "angle": { "description": "Degrees: 0 = left\u2192right, 90 = top\u2192bottom", "type": "number" }, "center": { "description": "[x, y] radial/sweep centre as box fractions (default [0.5, 0.5]; keyframable as gradient.center.x/y)", "items": { "type": "number" }, "type": "array" }, "kind": { "description": "Gradient shape", "enum": [ "linear", "radial", "sweep" ], "type": "string" }, "offset": { "description": "Shift along the axis in box widths (keyframable)", "type": "number" }, "offsetSpeed": { "description": "Box widths per second: a moving gradient", "type": "number" }, "oklab": { "description": "Interpolate in OKLab", "type": "boolean" }, "repeat": { "description": "Tile instead of clamp", "type": "boolean" }, "scale": { "description": "Axis length multiplier", "type": "number" }, "space": { "description": "Box the gradient maps onto (text only; a shape always uses its own box)", "enum": [ "block", "line", "word", "glyph", "accentRun" ], "type": "string" }, "stops": { "description": "Colour stops in order; list_gradient_presets has ready-made sets", "items": { "properties": { "color": { "description": "#RRGGBB or #AARRGGBB", "type": "string" }, "pos": { "description": "Position along the axis", "maximum": 1, "minimum": 0, "type": "number" } }, "type": "object" }, "type": "array" } }, "type": "object" }, "kind": { "description": "Paint source", "enum": [ "solid", "gradient", "texture", "effect" ], "type": "string" }, "texture": { "properties": { "angle": { "description": "Degrees", "type": "number" }, "offset": { "description": "[x, y] shift as box fractions", "items": { "type": "number" }, "type": "array" }, "path": { "description": "Absolute image path", "type": "string" }, "scale": { "description": "Scale", "type": "number" }, "tile": { "description": "Tile (else cover the block)", "type": "boolean" } }, "type": "object" } }, "type": "object" }, "scope": { "description": "Which words the layer paints (text only)", "enum": [ "all", "base", "accent" ], "type": "string" }, "sketchDeviation": { "description": "Hand-drawn jitter amount in px", "type": "number" }, "sketchLength": { "description": "Hand-drawn jitter segment length in px; 0 = off", "type": "number" }, "sketchSeed": { "description": "Jitter seed", "type": "integer" }, "spread": { "description": "Shadow/glow dilation in px", "type": "number" }, "strokeAlign": { "description": "Where a stroke sits on the outline (default outside on text, inside on shapes)", "enum": [ "center", "outside", "inside" ], "type": "string" }, "trimEnd": { "description": "Stroke write-on end 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "trimStart": { "description": "Stroke write-on start 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "width": { "description": "Stroke width or extrude depth in px", "type": "number" } }, "type": "object" }, "type": "array" }, "points": { "description": "Point count: star, burst", "maximum": 60, "minimum": 3, "type": "integer" }, "stroke": { "description": "Legacy: stroke layer colour", "type": "string" }, "strokeStyle": { "description": "Legacy: stroke dash pattern; none hides the stroke", "enum": [ "none", "solid", "dash", "dot", "dashdot" ], "type": "string" }, "strokeWidth": { "description": "Legacy: stroke width px; 0 hides the stroke", "maximum": 200, "minimum": 0, "type": "number" }, "tailSize": { "description": "Tail size: the same four bubbles", "maximum": 0.5, "minimum": 0.05, "type": "number" }, "tailX": { "description": "Tail x: speech-bubble, speech-bubble-rect, thought-bubble, callout", "maximum": 0.92, "minimum": 0.08, "type": "number" }, "thickness": { "description": "Shaft thickness: arrow, double-arrow, chevron, curved-arrow, cross", "maximum": 1, "minimum": 0.05, "type": "number" } }, "type": "object" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "style" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "add_shape_layer", "toolbox": "canvas", "description": "When: Add a fill / stroke / shadow / glow / extrude layer to a shape. Same as add_text_layer, on a shape clip: returns {layerId}; a fresh shape already has layers \"fill\" and \"stroke\". Inspect the stack via clip.shapeStyle.layers.", "schema": { "properties": { "at": { "description": "Insert index (0 = back-most); omitted = natural position", "type": "integer" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "kind": { "description": "Layer kind", "enum": [ "fill", "stroke", "shadow", "glow", "extrude" ], "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "kind" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_shape_layer", "toolbox": "canvas", "description": "When: Change one shading layer of a shape. Same as set_text_layer, on a shape clip: partial patch of one layer by id (or index).", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "id": { "description": "Layer id", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "layer": { "description": "Fields to change", "properties": { "blend": { "description": "Blend mode", "enum": [ "normal", "multiply", "screen", "overlay", "add", "darken", "lighten", "colorBurn", "linearBurn", "darkerColor", "colorDodge", "lighterColor", "softLight", "hardLight", "vividLight", "linearLight", "pinLight", "hardMix", "difference", "exclusion", "subtract", "divide", "hue", "saturation", "color", "luminosity" ], "type": "string" }, "blur": { "description": "Shadow blur / glow radius in px", "type": "number" }, "dash": { "description": "Stroke dash pattern", "enum": [ "solid", "dash", "dot", "dashdot" ], "type": "string" }, "dashOffset": { "description": "Dash phase in stroke widths (keyframe for marching ants)", "type": "number" }, "enabled": { "description": "On/off", "type": "boolean" }, "extrudeAngle": { "description": "Extrude direction in degrees", "type": "number" }, "extrudeDarken": { "description": "How much the far end darkens 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "extrudeSteps": { "description": "Extrude copies", "type": "integer" }, "id": { "description": "Stable layer id (lowercase); minted when omitted", "type": "string" }, "join": { "description": "Stroke corner join (default round)", "enum": [ "miter", "round", "bevel" ], "type": "string" }, "kind": { "description": "Layer kind", "enum": [ "fill", "stroke", "shadow", "glow", "extrude" ], "type": "string" }, "knockout": { "description": "A fill that punches through the layers beneath (hollow)", "type": "boolean" }, "miterLimit": { "description": "Miter join limit, 1-100 (default 4); lower it to cut off spikes on sharp corners", "type": "number" }, "offsetX": { "description": "px at pixelSize", "type": "number" }, "offsetY": { "description": "px at pixelSize", "type": "number" }, "opacity": { "description": "0..1", "maximum": 1, "minimum": 0, "type": "number" }, "paint": { "properties": { "color": { "description": "Solid colour, or the tint for texture/effect", "type": "string" }, "effect": { "properties": { "id": { "description": "Shader effect; list_text_effects has each one's params", "enum": [ "shine", "shimmer", "neon-pulse", "glitch", "chrome", "dissolve" ], "type": "string" }, "params": { "description": "{id: {type, value}} typed params \u2014 the type (scalar|color|text) and ids come from list_text_effects; a bare number is NOT accepted here. Scalar params keyframe as layer..effect.", "type": "object" } }, "type": "object" }, "gradient": { "properties": { "angle": { "description": "Degrees: 0 = left\u2192right, 90 = top\u2192bottom", "type": "number" }, "center": { "description": "[x, y] radial/sweep centre as box fractions (default [0.5, 0.5]; keyframable as gradient.center.x/y)", "items": { "type": "number" }, "type": "array" }, "kind": { "description": "Gradient shape", "enum": [ "linear", "radial", "sweep" ], "type": "string" }, "offset": { "description": "Shift along the axis in box widths (keyframable)", "type": "number" }, "offsetSpeed": { "description": "Box widths per second: a moving gradient", "type": "number" }, "oklab": { "description": "Interpolate in OKLab", "type": "boolean" }, "repeat": { "description": "Tile instead of clamp", "type": "boolean" }, "scale": { "description": "Axis length multiplier", "type": "number" }, "space": { "description": "Box the gradient maps onto (text only; a shape always uses its own box)", "enum": [ "block", "line", "word", "glyph", "accentRun" ], "type": "string" }, "stops": { "description": "Colour stops in order; list_gradient_presets has ready-made sets", "items": { "properties": { "color": { "description": "#RRGGBB or #AARRGGBB", "type": "string" }, "pos": { "description": "Position along the axis", "maximum": 1, "minimum": 0, "type": "number" } }, "type": "object" }, "type": "array" } }, "type": "object" }, "kind": { "description": "Paint source", "enum": [ "solid", "gradient", "texture", "effect" ], "type": "string" }, "texture": { "properties": { "angle": { "description": "Degrees", "type": "number" }, "offset": { "description": "[x, y] shift as box fractions", "items": { "type": "number" }, "type": "array" }, "path": { "description": "Absolute image path", "type": "string" }, "scale": { "description": "Scale", "type": "number" }, "tile": { "description": "Tile (else cover the block)", "type": "boolean" } }, "type": "object" } }, "type": "object" }, "scope": { "description": "Which words the layer paints (text only)", "enum": [ "all", "base", "accent" ], "type": "string" }, "sketchDeviation": { "description": "Hand-drawn jitter amount in px", "type": "number" }, "sketchLength": { "description": "Hand-drawn jitter segment length in px; 0 = off", "type": "number" }, "sketchSeed": { "description": "Jitter seed", "type": "integer" }, "spread": { "description": "Shadow/glow dilation in px", "type": "number" }, "strokeAlign": { "description": "Where a stroke sits on the outline (default outside on text, inside on shapes)", "enum": [ "center", "outside", "inside" ], "type": "string" }, "trimEnd": { "description": "Stroke write-on end 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "trimStart": { "description": "Stroke write-on start 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "width": { "description": "Stroke width or extrude depth in px", "type": "number" } }, "type": "object" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "layer" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "remove_shape_layer", "toolbox": "canvas", "description": "When: Delete a shape's shading layer. Remove the layer and any keyframes on it.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "id": { "description": "Layer id", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "id" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "move_shape_layer", "toolbox": "canvas", "description": "When: Reorder a shape's shading layers. Move the layer to index `to` (0 = back-most, drawn first).", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "id": { "description": "Layer id", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "to": { "description": "Destination index", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "id", "to" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "duplicate_shape_layer", "toolbox": "canvas", "description": "When: Copy a shape's shading layer in place. Same as duplicate_text_layer, on a shape clip: returns {layerId}.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "id": { "description": "Layer id", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "id" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_clip_orientation", "toolbox": "canvas", "description": "When: Fix a sideways video clip. Set a video clip's absolute orientation (0/90/180/270, snapped to the nearest quarter turn) as a lossless decode-time correction; the clip box is re-fitted when the aspect flips. inspect detail rows show it as orientation (absolute) and rotationCorrection (stored delta). Video clips only \u2014 fails type_mismatch otherwise.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "degrees": { "description": "Absolute orientation in degrees", "maximum": 359, "minimum": 0, "type": "integer" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "degrees" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "stabilize_clip", "toolbox": "canvas", "description": "When: Stabilise shaky footage. Start a two-pass stabilise on a video clip's source range. bake renders a ' (stabilized)' bin asset with the clip's audio, points the clip at it and deletes its linked audio clip. Re-running always starts from the original video. Async: poll inspect({clips:true,detail:true}) for that clip's stabilizing/stabilizeProgress/stabilizeStatus.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "mode": { "description": "bake renders a stabilized bin asset; keyframes write transform keys", "enum": [ "bake", "keyframes" ], "type": "string" }, "smoothing": { "description": "Smoothing window, typical 10\u201330", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "tripod": { "description": "Lock camera translation", "type": "boolean" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "cancel_stabilize", "toolbox": "canvas", "description": "When: Stop stabilise job. Cancel an in-flight stabilize_clip. Returns ok even when nothing was running.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "remove_stabilize", "toolbox": "canvas", "description": "When: Undo stabilize_clip's keyframes. Restore the rest pose of a clip stabilized in keyframes mode. Errors on a bake: that is a bin asset of its own, so point the clip back at the original instead.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "auto_reframe", "toolbox": "canvas", "description": "When: Keep a face in frame. Write positionX/positionY/scaleX/scaleY transform keyframes so the subject stays in frame at the requested aspect. Does not crop the project canvas, so a 16:9 timeline can still export a 9:16 deliverable. mode face follows list_face_track (run detect_faces first); center is a static centre crop; motion is face with heavier smoothing. Returns scale \u2014 how much of the source ends up across the canvas at the tightest point \u2014 plus upscaled:true when that is above 1, which means the crop is being blown up past the source's own resolution and will look soft.", "schema": { "properties": { "aspect": { "description": "Target width/height, e.g. 0.5625 for 9:16", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "height": { "description": "Target height pixels \u2014 only used to derive aspect when aspect is omitted", "type": "integer" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "mode": { "default": "face", "description": "How to pick the crop", "enum": [ "face", "center", "motion" ], "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "width": { "description": "Target width pixels \u2014 only used to derive aspect when aspect is omitted", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "seek", "toolbox": "playback", "description": "When: Jump the playhead. Move the playhead to `at` seconds and return the clamped position. Worth doing before ops that read the playhead: set_transform, capture, split_clip, freeze_frame, upsert_subtitle_cue, paste_at_playhead, and any add_* with `at` omitted.", "schema": { "properties": { "at": { "description": "Seconds; clamped to the project duration", "type": "number" } }, "required": [ "at" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "play", "toolbox": "playback", "description": "When: Let the timeline run (loops the work area if set). Start playback from the current playhead, looping over the work area when one is set. Playback moves the playhead, which changes where playhead-based ops land \u2014 pause before editing. Returns {playing}.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "pause", "toolbox": "playback", "description": "When: Freeze the playhead before playhead-based edits. Pause playback, leaving the playhead where it stopped. Returns {playing}. capture pauses on its own.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_work_area", "toolbox": "playback", "description": "When: Set the In/Out range. Set the In/Out work area, used for loop playback and for export_video's work_area option. out must be greater than in, else bad_args. Read it back from inspect as work_in/work_out, which are absent when no work area is set.", "schema": { "properties": { "in": { "description": "In point seconds", "type": "number" }, "out": { "description": "Out point seconds; must be greater than in", "type": "number" } }, "required": [ "in", "out" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "clear_work_area", "toolbox": "playback", "description": "When: Clear the In/Out range. Remove the In/Out work area. Afterwards export_video with work_area:true fails bad_args, and inspect stops reporting work_in/work_out.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_bakes", "toolbox": "playback", "description": "When: See pre-rendered ranges and which went stale. List the range bakes: stretches of the main timeline rendered once into the app's cache so the preview plays them smoothly (Video menu > Bakes in the app). Returns {bakes:[{id, start, end, state, bytes, quality, width, height, progress?}], n, stale, busy, progress?, queued, file_bytes, quality} by start. A bake is the whole picture, every track. state is fresh, stale (something drawn under it changed since: a clip, transition or track, the canvas, or a source file; undoing the edit makes it fresh again) or baking; the running bake is the row id \"pending\" until its first frames land. bytes counts the GOPs a bake is first to hold, so a split piece can read 0. Staleness is re-checked on every call. A stale bake still plays in the preview (unless the canvas size or fps changed); export_video renders its range live unless bakes:\"all\"; capture and frames always render live. quality is the preset new bakes get (compact, balanced, high; the user picks it in the Bakes dialog). Bakes aren't part of the project: not saved with it, not undoable, never dirty it.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "bake_range", "toolbox": "playback", "description": "When: Pre-render a heavy stretch so playback stays smooth. Queue a bake of main-timeline seconds [from, to), widened to whole frames and cut at the timeline's end, at the user's bake quality. The work area is left alone. Async: returns {start, end, busy, queued} at once; wait_idle({kinds:[\"bake\"]}) or poll list_bakes. Bakes run one at a time, and starting one pauses playback; the same range twice is queued once. A new bake replaces what older bakes hold under it (they are trimmed, or split into a piece with a new id). bad_args when the range holds no frame, and while a composite is open (bakes are of the main timeline: open_composite({main:true}) first); io_error when the cache file can't be opened. Not undoable; the project is not changed.", "schema": { "properties": { "from": { "description": "Start, main-timeline seconds (>= 0)", "type": "number" }, "to": { "description": "End seconds; must be greater than from", "type": "number" } }, "required": [ "from", "to" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "rebake", "toolbox": "playback", "description": "When: Re-render a stale bake, or every stale one. Bake bake id's range again (any state), or every stale bake with stale:true, at the user's bake quality. Pass one of id or stale. The new bake gets a new id: read list_bakes once it's done. Async like bake_range: returns {start, end} for id or {n} (stale bakes queued, or already queued) for stale, plus {busy, queued}. conflict while a bake runs or waits (wait_idle or cancel_bake first). not_found for an unknown id, \"pending\" included; bad_args when the bake now lies past the timeline's end; io_error when the cache can't be opened. Not undoable.", "schema": { "properties": { "id": { "description": "Bake id from list_bakes", "type": "string" }, "stale": { "description": "Every stale bake instead of one id", "type": "boolean" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "delete_bake", "toolbox": "playback", "description": "When: Drop a bake, or all of them, to free cache space. Delete bake id, or every bake with all:true; playback and export render that range live again. The project is not changed and only the bake cache is touched (its space is reused by later bakes). With id: conflict while a bake runs (cancel_bake or wait_idle({kinds:[\"bake\"]}) first). all:true also stops the running bake and empties the queue; then pending:true, and the bakes go once it has stopped. Returns {deleted:[ids as of the call], pending?, busy, queued}. Not undoable.", "schema": { "properties": { "all": { "description": "Every bake", "type": "boolean" }, "id": { "description": "Bake id from list_bakes", "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "cancel_bake", "toolbox": "playback", "description": "When: Stop the running bake and empty the queue. Stop the running bake and empty the queue. The frames it baked so far stay, as a shorter bake. Returns {cancelled, busy, queued}: cancelled is false when nothing ran or waited. The bake stops shortly after; wait_idle({kinds:[\"bake\"]}) to be sure.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_loop_work_area", "toolbox": "playback", "description": "When: Loop the In/Out range. When on, playback loops over the work area. Not undoable.", "schema": { "properties": { "enabled": { "description": "Loop the work area", "type": "boolean" } }, "required": [ "enabled" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "add_text", "toolbox": "text", "description": "When: Put a title or caption on the timeline. Add a text clip on a text track, creating one if needed, and return the new clip's id. Empty text becomes \"Text\".", "schema": { "properties": { "at": { "description": "Start seconds (default: playhead)", "type": "number" }, "preset": { "description": "Optional text style pack id from list_text_presets", "type": "string" }, "text": { "description": "Caption", "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_text", "toolbox": "text", "description": "When: Change caption copy or style. Set text content and/or a partial style patch. Only supplied style keys change; omitted ones keep their current value.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "style": { "properties": { "accent": { "properties": { "color": { "description": "Accent colour", "type": "string" }, "colorEnabled": { "description": "Recolour accented words", "type": "boolean" }, "highlight": { "description": "Pill behind accented words", "properties": { "color": { "description": "Pill colour", "type": "string" }, "enabled": { "description": "On/off", "type": "boolean" }, "padding": { "description": "Padding in px at pixelSize", "type": "number" }, "radius": { "description": "Corner radius in px", "type": "number" } }, "type": "object" }, "n": { "description": "Stride for everyNth", "maximum": 16, "minimum": 1, "type": "integer" }, "outlineColor": { "description": "Accent outline colour", "type": "string" }, "outlineEnabled": { "description": "Outline accented words", "type": "boolean" }, "outlineWidth": { "description": "Accent outline width in px", "type": "number" }, "phase": { "description": "Index of the first accented word", "maximum": 16, "minimum": 0, "type": "integer" }, "rule": { "description": "Which words get the accent", "enum": [ "none", "firstWord", "lastWord", "everyOther", "everyNth", "longestWord", "randomStable", "karaoke" ], "type": "string" }, "sizeScale": { "description": "Accented word size relative to pixelSize", "maximum": 4, "minimum": 0.25, "type": "number" } }, "type": "object" }, "align": { "description": "Horizontal alignment", "enum": [ "left", "center", "right" ], "type": "string" }, "animIn": { "description": "Legacy entrance animation (maps onto animation.in)", "properties": { "duration": { "description": "Seconds", "maximum": 10, "minimum": 0, "type": "number" }, "ease": { "description": "Easing", "enum": [ "linear", "easeIn", "easeOut", "easeInOut", "back", "bounce", "smooth" ], "type": "string" }, "kind": { "description": "Motion (legacy; prefer animation.in/out presets)", "enum": [ "none", "fade", "slideUp", "slideDown", "slideLeft", "slideRight", "pop", "blur", "typewriter", "rise", "bounce", "wave" ], "type": "string" }, "order": { "description": "Unit order", "enum": [ "forward", "backward", "centerOut", "random" ], "type": "string" }, "stagger": { "description": "Seconds between units", "maximum": 2, "minimum": 0, "type": "number" }, "unit": { "description": "What animates separately", "enum": [ "block", "word", "character", "line" ], "type": "string" } }, "type": "object" }, "animOut": { "description": "Legacy exit animation (maps onto animation.out)", "properties": { "duration": { "description": "Seconds", "maximum": 10, "minimum": 0, "type": "number" }, "ease": { "description": "Easing", "enum": [ "linear", "easeIn", "easeOut", "easeInOut", "back", "bounce", "smooth" ], "type": "string" }, "kind": { "description": "Motion (legacy; prefer animation.in/out presets)", "enum": [ "none", "fade", "slideUp", "slideDown", "slideLeft", "slideRight", "pop", "blur", "typewriter", "rise", "bounce", "wave" ], "type": "string" }, "order": { "description": "Unit order", "enum": [ "forward", "backward", "centerOut", "random" ], "type": "string" }, "stagger": { "description": "Seconds between units", "maximum": 2, "minimum": 0, "type": "number" }, "unit": { "description": "What animates separately", "enum": [ "block", "word", "character", "line" ], "type": "string" } }, "type": "object" }, "animation": { "properties": { "anchorAlignment": { "description": "[x, y] pivot inside each group, -1..1 (0,0 = centre)", "items": { "type": "number" }, "type": "array" }, "anchorGrouping": { "description": "What per-fragment scale/rotation pivots on", "enum": [ "character", "word", "line", "all" ], "type": "string" }, "caret": { "properties": { "blinkOff": { "description": "Seconds off", "type": "number" }, "blinkOn": { "description": "Seconds on", "type": "number" }, "color": { "description": "Caret colour; \"\" = the text colour", "type": "string" }, "enabled": { "description": "Typewriter caret", "type": "boolean" }, "heightEm": { "description": "Caret height in em", "maximum": 2, "minimum": 0.1, "type": "number" }, "holdAfter": { "description": "Seconds to keep blinking after the reveal; -1 = whole clip", "type": "number" }, "lead": { "description": "Seconds the caret blinks alone first", "type": "number" }, "shape": { "description": "Caret shape", "enum": [ "bar", "underscore", "block" ], "type": "string" }, "widthEm": { "description": "Caret width in em", "maximum": 2, "minimum": 0.01, "type": "number" } }, "type": "object" }, "in": { "description": "Entrance", "properties": { "amount": { "description": "Loop strength shortcut, for presets that declare an amount param", "type": "number" }, "animators": { "description": "Inline AE-style animator tree (expert): [{selectors:[{driver, domain, \u2026}], props:{position, scale, rotation, opacity, blur, tracking, fillColor, \u2026}}]. Replaces the preset.", "type": "array" }, "delay": { "description": "Seconds after the start (In) / before the end (Out)", "maximum": 10, "minimum": 0, "type": "number" }, "duration": { "description": "Seconds per unit (In/Out)", "maximum": 10, "minimum": 0, "type": "number" }, "durationOverride": { "description": "Seconds: total length of the slot's motion, overriding the preset's own timing; 0 = preset default", "maximum": 60, "minimum": 0, "type": "number" }, "ease": { "description": "Easing", "enum": [ "linear", "easeIn", "easeOut", "easeInOut", "back", "bounce", "smooth" ], "type": "string" }, "enabled": { "description": "On/off without losing the preset", "type": "boolean" }, "keepControls": { "description": "When switching preset, carry duration/stagger/unit/order/ease/period/amount over instead of resetting them", "type": "boolean" }, "order": { "description": "Unit order", "enum": [ "forward", "backward", "centerOut", "random" ], "type": "string" }, "params": { "description": "Preset param overrides {id: value}; ids and types come from the preset's params list", "type": "object" }, "period": { "description": "Loop period in seconds; 0 = once over the whole clip (hold motion)", "maximum": 60, "minimum": 0, "type": "number" }, "preset": { "description": "Preset id from list_text_animations; \"\" or \"none\" clears the slot. Switching to a different preset resets its params to that preset's defaults (re-sending the current id keeps them).", "type": "string" }, "stagger": { "description": "Seconds between units", "maximum": 2, "minimum": 0, "type": "number" }, "unit": { "description": "What animates separately", "enum": [ "block", "word", "character", "line" ], "type": "string" } }, "type": "object" }, "loop": { "description": "While on screen (loops and hold motion)", "properties": { "amount": { "description": "Loop strength shortcut, for presets that declare an amount param", "type": "number" }, "animators": { "description": "Inline AE-style animator tree (expert): [{selectors:[{driver, domain, \u2026}], props:{position, scale, rotation, opacity, blur, tracking, fillColor, \u2026}}]. Replaces the preset.", "type": "array" }, "delay": { "description": "Seconds after the start (In) / before the end (Out)", "maximum": 10, "minimum": 0, "type": "number" }, "duration": { "description": "Seconds per unit (In/Out)", "maximum": 10, "minimum": 0, "type": "number" }, "durationOverride": { "description": "Seconds: total length of the slot's motion, overriding the preset's own timing; 0 = preset default", "maximum": 60, "minimum": 0, "type": "number" }, "ease": { "description": "Easing", "enum": [ "linear", "easeIn", "easeOut", "easeInOut", "back", "bounce", "smooth" ], "type": "string" }, "enabled": { "description": "On/off without losing the preset", "type": "boolean" }, "keepControls": { "description": "When switching preset, carry duration/stagger/unit/order/ease/period/amount over instead of resetting them", "type": "boolean" }, "order": { "description": "Unit order", "enum": [ "forward", "backward", "centerOut", "random" ], "type": "string" }, "params": { "description": "Preset param overrides {id: value}; ids and types come from the preset's params list", "type": "object" }, "period": { "description": "Loop period in seconds; 0 = once over the whole clip (hold motion)", "maximum": 60, "minimum": 0, "type": "number" }, "preset": { "description": "Preset id from list_text_animations; \"\" or \"none\" clears the slot. Switching to a different preset resets its params to that preset's defaults (re-sending the current id keeps them).", "type": "string" }, "stagger": { "description": "Seconds between units", "maximum": 2, "minimum": 0, "type": "number" }, "unit": { "description": "What animates separately", "enum": [ "block", "word", "character", "line" ], "type": "string" } }, "type": "object" }, "out": { "description": "Exit", "properties": { "amount": { "description": "Loop strength shortcut, for presets that declare an amount param", "type": "number" }, "animators": { "description": "Inline AE-style animator tree (expert): [{selectors:[{driver, domain, \u2026}], props:{position, scale, rotation, opacity, blur, tracking, fillColor, \u2026}}]. Replaces the preset.", "type": "array" }, "delay": { "description": "Seconds after the start (In) / before the end (Out)", "maximum": 10, "minimum": 0, "type": "number" }, "duration": { "description": "Seconds per unit (In/Out)", "maximum": 10, "minimum": 0, "type": "number" }, "durationOverride": { "description": "Seconds: total length of the slot's motion, overriding the preset's own timing; 0 = preset default", "maximum": 60, "minimum": 0, "type": "number" }, "ease": { "description": "Easing", "enum": [ "linear", "easeIn", "easeOut", "easeInOut", "back", "bounce", "smooth" ], "type": "string" }, "enabled": { "description": "On/off without losing the preset", "type": "boolean" }, "keepControls": { "description": "When switching preset, carry duration/stagger/unit/order/ease/period/amount over instead of resetting them", "type": "boolean" }, "order": { "description": "Unit order", "enum": [ "forward", "backward", "centerOut", "random" ], "type": "string" }, "params": { "description": "Preset param overrides {id: value}; ids and types come from the preset's params list", "type": "object" }, "period": { "description": "Loop period in seconds; 0 = once over the whole clip (hold motion)", "maximum": 60, "minimum": 0, "type": "number" }, "preset": { "description": "Preset id from list_text_animations; \"\" or \"none\" clears the slot. Switching to a different preset resets its params to that preset's defaults (re-sending the current id keeps them).", "type": "string" }, "stagger": { "description": "Seconds between units", "maximum": 2, "minimum": 0, "type": "number" }, "unit": { "description": "What animates separately", "enum": [ "block", "word", "character", "line" ], "type": "string" } }, "type": "object" } }, "type": "object" }, "boxColor": { "description": "Box colour", "type": "string" }, "boxEnabled": { "description": "Filled box behind the block", "type": "boolean" }, "boxPadding": { "description": "Box padding in px", "type": "number" }, "boxRadius": { "description": "Box corner radius in px", "type": "number" }, "color": { "description": "Primary text colour (#RRGGBB or #AARRGGBB): edits the front-most fill layer", "type": "string" }, "colorSecondary": { "description": "Legacy: gradient end colour", "type": "string" }, "fillKind": { "description": "Legacy: solid, or a two-stop gradient on the fill layer", "enum": [ "solid", "linearGradient", "radialGradient" ], "type": "string" }, "fontFamily": { "description": "Font family name", "type": "string" }, "fontWeight": { "description": "Font weight (e.g. 400, 700)", "maximum": 900, "minimum": 100, "type": "integer" }, "glowColor": { "description": "Legacy: glow colour", "type": "string" }, "glowEnabled": { "description": "Legacy: the glow layer on/off", "type": "boolean" }, "glowOpacity": { "description": "Legacy: glow opacity 0..1", "type": "number" }, "glowRadius": { "description": "Legacy: glow radius in px", "type": "number" }, "gradientAngle": { "description": "Legacy: gradient angle in degrees", "type": "number" }, "italic": { "description": "Italic", "type": "boolean" }, "layer": { "description": "Partial patch of one existing layer, addressed by id or index", "properties": { "blend": { "description": "Blend mode", "enum": [ "normal", "multiply", "screen", "overlay", "add", "darken", "lighten", "colorBurn", "linearBurn", "darkerColor", "colorDodge", "lighterColor", "softLight", "hardLight", "vividLight", "linearLight", "pinLight", "hardMix", "difference", "exclusion", "subtract", "divide", "hue", "saturation", "color", "luminosity" ], "type": "string" }, "blur": { "description": "Shadow blur / glow radius in px", "type": "number" }, "dash": { "description": "Stroke dash pattern", "enum": [ "solid", "dash", "dot", "dashdot" ], "type": "string" }, "dashOffset": { "description": "Dash phase in stroke widths (keyframe for marching ants)", "type": "number" }, "enabled": { "description": "On/off", "type": "boolean" }, "extrudeAngle": { "description": "Extrude direction in degrees", "type": "number" }, "extrudeDarken": { "description": "How much the far end darkens 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "extrudeSteps": { "description": "Extrude copies", "type": "integer" }, "id": { "description": "Stable layer id (lowercase); minted when omitted", "type": "string" }, "index": { "description": "Layer index, when no id", "type": "integer" }, "join": { "description": "Stroke corner join (default round)", "enum": [ "miter", "round", "bevel" ], "type": "string" }, "kind": { "description": "Layer kind", "enum": [ "fill", "stroke", "shadow", "glow", "extrude" ], "type": "string" }, "knockout": { "description": "A fill that punches through the layers beneath (hollow)", "type": "boolean" }, "miterLimit": { "description": "Miter join limit, 1-100 (default 4); lower it to cut off spikes on sharp corners", "type": "number" }, "offsetX": { "description": "px at pixelSize", "type": "number" }, "offsetY": { "description": "px at pixelSize", "type": "number" }, "opacity": { "description": "0..1", "maximum": 1, "minimum": 0, "type": "number" }, "paint": { "properties": { "color": { "description": "Solid colour, or the tint for texture/effect", "type": "string" }, "effect": { "properties": { "id": { "description": "Shader effect; list_text_effects has each one's params", "enum": [ "shine", "shimmer", "neon-pulse", "glitch", "chrome", "dissolve" ], "type": "string" }, "params": { "description": "{id: {type, value}} typed params \u2014 the type (scalar|color|text) and ids come from list_text_effects; a bare number is NOT accepted here. Scalar params keyframe as layer..effect.", "type": "object" } }, "type": "object" }, "gradient": { "properties": { "angle": { "description": "Degrees: 0 = left\u2192right, 90 = top\u2192bottom", "type": "number" }, "center": { "description": "[x, y] radial/sweep centre as box fractions (default [0.5, 0.5]; keyframable as gradient.center.x/y)", "items": { "type": "number" }, "type": "array" }, "kind": { "description": "Gradient shape", "enum": [ "linear", "radial", "sweep" ], "type": "string" }, "offset": { "description": "Shift along the axis in box widths (keyframable)", "type": "number" }, "offsetSpeed": { "description": "Box widths per second: a moving gradient", "type": "number" }, "oklab": { "description": "Interpolate in OKLab", "type": "boolean" }, "repeat": { "description": "Tile instead of clamp", "type": "boolean" }, "scale": { "description": "Axis length multiplier", "type": "number" }, "space": { "description": "Box the gradient maps onto (text only; a shape always uses its own box)", "enum": [ "block", "line", "word", "glyph", "accentRun" ], "type": "string" }, "stops": { "description": "Colour stops in order; list_gradient_presets has ready-made sets", "items": { "properties": { "color": { "description": "#RRGGBB or #AARRGGBB", "type": "string" }, "pos": { "description": "Position along the axis", "maximum": 1, "minimum": 0, "type": "number" } }, "type": "object" }, "type": "array" } }, "type": "object" }, "kind": { "description": "Paint source", "enum": [ "solid", "gradient", "texture", "effect" ], "type": "string" }, "texture": { "properties": { "angle": { "description": "Degrees", "type": "number" }, "offset": { "description": "[x, y] shift as box fractions", "items": { "type": "number" }, "type": "array" }, "path": { "description": "Absolute image path", "type": "string" }, "scale": { "description": "Scale", "type": "number" }, "tile": { "description": "Tile (else cover the block)", "type": "boolean" } }, "type": "object" } }, "type": "object" }, "scope": { "description": "Which words the layer paints (text only)", "enum": [ "all", "base", "accent" ], "type": "string" }, "sketchDeviation": { "description": "Hand-drawn jitter amount in px", "type": "number" }, "sketchLength": { "description": "Hand-drawn jitter segment length in px; 0 = off", "type": "number" }, "sketchSeed": { "description": "Jitter seed", "type": "integer" }, "spread": { "description": "Shadow/glow dilation in px", "type": "number" }, "strokeAlign": { "description": "Where a stroke sits on the outline (default outside on text, inside on shapes)", "enum": [ "center", "outside", "inside" ], "type": "string" }, "trimEnd": { "description": "Stroke write-on end 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "trimStart": { "description": "Stroke write-on start 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "width": { "description": "Stroke width or extrude depth in px", "type": "number" } }, "type": "object" }, "layers": { "description": "The whole shading stack, replaced as given; layers[0] is drawn first (back-most). Use `layer` to patch one.", "items": { "description": "A shading layer", "properties": { "blend": { "description": "Blend mode", "enum": [ "normal", "multiply", "screen", "overlay", "add", "darken", "lighten", "colorBurn", "linearBurn", "darkerColor", "colorDodge", "lighterColor", "softLight", "hardLight", "vividLight", "linearLight", "pinLight", "hardMix", "difference", "exclusion", "subtract", "divide", "hue", "saturation", "color", "luminosity" ], "type": "string" }, "blur": { "description": "Shadow blur / glow radius in px", "type": "number" }, "dash": { "description": "Stroke dash pattern", "enum": [ "solid", "dash", "dot", "dashdot" ], "type": "string" }, "dashOffset": { "description": "Dash phase in stroke widths (keyframe for marching ants)", "type": "number" }, "enabled": { "description": "On/off", "type": "boolean" }, "extrudeAngle": { "description": "Extrude direction in degrees", "type": "number" }, "extrudeDarken": { "description": "How much the far end darkens 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "extrudeSteps": { "description": "Extrude copies", "type": "integer" }, "id": { "description": "Stable layer id (lowercase); minted when omitted", "type": "string" }, "join": { "description": "Stroke corner join (default round)", "enum": [ "miter", "round", "bevel" ], "type": "string" }, "kind": { "description": "Layer kind", "enum": [ "fill", "stroke", "shadow", "glow", "extrude" ], "type": "string" }, "knockout": { "description": "A fill that punches through the layers beneath (hollow)", "type": "boolean" }, "miterLimit": { "description": "Miter join limit, 1-100 (default 4); lower it to cut off spikes on sharp corners", "type": "number" }, "offsetX": { "description": "px at pixelSize", "type": "number" }, "offsetY": { "description": "px at pixelSize", "type": "number" }, "opacity": { "description": "0..1", "maximum": 1, "minimum": 0, "type": "number" }, "paint": { "properties": { "color": { "description": "Solid colour, or the tint for texture/effect", "type": "string" }, "effect": { "properties": { "id": { "description": "Shader effect; list_text_effects has each one's params", "enum": [ "shine", "shimmer", "neon-pulse", "glitch", "chrome", "dissolve" ], "type": "string" }, "params": { "description": "{id: {type, value}} typed params \u2014 the type (scalar|color|text) and ids come from list_text_effects; a bare number is NOT accepted here. Scalar params keyframe as layer..effect.", "type": "object" } }, "type": "object" }, "gradient": { "properties": { "angle": { "description": "Degrees: 0 = left\u2192right, 90 = top\u2192bottom", "type": "number" }, "center": { "description": "[x, y] radial/sweep centre as box fractions (default [0.5, 0.5]; keyframable as gradient.center.x/y)", "items": { "type": "number" }, "type": "array" }, "kind": { "description": "Gradient shape", "enum": [ "linear", "radial", "sweep" ], "type": "string" }, "offset": { "description": "Shift along the axis in box widths (keyframable)", "type": "number" }, "offsetSpeed": { "description": "Box widths per second: a moving gradient", "type": "number" }, "oklab": { "description": "Interpolate in OKLab", "type": "boolean" }, "repeat": { "description": "Tile instead of clamp", "type": "boolean" }, "scale": { "description": "Axis length multiplier", "type": "number" }, "space": { "description": "Box the gradient maps onto (text only; a shape always uses its own box)", "enum": [ "block", "line", "word", "glyph", "accentRun" ], "type": "string" }, "stops": { "description": "Colour stops in order; list_gradient_presets has ready-made sets", "items": { "properties": { "color": { "description": "#RRGGBB or #AARRGGBB", "type": "string" }, "pos": { "description": "Position along the axis", "maximum": 1, "minimum": 0, "type": "number" } }, "type": "object" }, "type": "array" } }, "type": "object" }, "kind": { "description": "Paint source", "enum": [ "solid", "gradient", "texture", "effect" ], "type": "string" }, "texture": { "properties": { "angle": { "description": "Degrees", "type": "number" }, "offset": { "description": "[x, y] shift as box fractions", "items": { "type": "number" }, "type": "array" }, "path": { "description": "Absolute image path", "type": "string" }, "scale": { "description": "Scale", "type": "number" }, "tile": { "description": "Tile (else cover the block)", "type": "boolean" } }, "type": "object" } }, "type": "object" }, "scope": { "description": "Which words the layer paints (text only)", "enum": [ "all", "base", "accent" ], "type": "string" }, "sketchDeviation": { "description": "Hand-drawn jitter amount in px", "type": "number" }, "sketchLength": { "description": "Hand-drawn jitter segment length in px; 0 = off", "type": "number" }, "sketchSeed": { "description": "Jitter seed", "type": "integer" }, "spread": { "description": "Shadow/glow dilation in px", "type": "number" }, "strokeAlign": { "description": "Where a stroke sits on the outline (default outside on text, inside on shapes)", "enum": [ "center", "outside", "inside" ], "type": "string" }, "trimEnd": { "description": "Stroke write-on end 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "trimStart": { "description": "Stroke write-on start 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "width": { "description": "Stroke width or extrude depth in px", "type": "number" } }, "type": "object" }, "type": "array" }, "letterSpacing": { "description": "Letter spacing", "type": "number" }, "lineHeight": { "description": "Line height multiplier", "maximum": 4, "minimum": 0.5, "type": "number" }, "lookId": { "description": "\"\" clears the look bookkeeping (and the packId); any other value is ignored \u2014 use apply_text_look to apply one", "type": "string" }, "lookParams": { "description": "Read-only in inspect: the current look's params. Change them by re-applying the look with apply_text_look({look, params})", "type": "object" }, "outlineColor": { "description": "Legacy: stroke colour", "type": "string" }, "outlineEnabled": { "description": "Legacy: the stroke layer on/off", "type": "boolean" }, "outlineWidth": { "description": "Legacy: stroke width in px at pixelSize", "type": "number" }, "pathBend": { "description": "Arch a single-line block along an arc: -100..100, positive bends upward; ignored on multi-line blocks", "maximum": 100, "minimum": -100, "type": "number" }, "pixelSize": { "description": "Font size in pixels", "maximum": 800, "minimum": 8, "type": "number" }, "shadowBlur": { "description": "Legacy: shadow blur radius in px", "type": "number" }, "shadowColor": { "description": "Legacy: shadow colour", "type": "string" }, "shadowEnabled": { "description": "Legacy: the shadow layer on/off", "type": "boolean" }, "shadowOffsetX": { "description": "Legacy: shadow x offset in px", "type": "number" }, "shadowOffsetY": { "description": "Legacy: shadow y offset in px", "type": "number" }, "shadowOpacity": { "description": "Legacy: shadow opacity 0..1", "type": "number" }, "strikethroughEnabled": { "description": "Strikethrough rule through each line", "type": "boolean" }, "textCase": { "description": "Display case transform; the clip's text is unchanged", "enum": [ "none", "upper", "lower", "title", "sentence" ], "type": "string" }, "underlineColor": { "description": "Underline colour", "type": "string" }, "underlineEnabled": { "description": "Underline", "type": "boolean" }, "underlineOffset": { "description": "Underline distance below the baseline in px", "type": "number" }, "underlineWidth": { "description": "Underline thickness in px", "type": "number" }, "valign": { "description": "Vertical alignment", "enum": [ "top", "center", "bottom" ], "type": "string" }, "wordHighlight": { "description": "Filled pill behind every word", "properties": { "color": { "description": "Pill colour", "type": "string" }, "enabled": { "description": "On/off", "type": "boolean" }, "padding": { "description": "Padding in px at pixelSize", "type": "number" }, "radius": { "description": "Corner radius in px", "type": "number" } }, "type": "object" }, "wordWrap": { "description": "Wrap long lines", "type": "boolean" } }, "type": "object" }, "text": { "description": "New content", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_text_presets", "toolbox": "text", "description": "When: Text style packs. Returns {presets:[{id, label, sampleText, font, accent?, anim:{in?, out?, loop?}}], n} \u2014 accent is the word-accent rule of caption packs, anim the pack's animation preset ids. Use id as the preset argument to add_text or apply_text_preset. q also matches font and accent.", "schema": { "properties": { "q": { "description": "Case-insensitive substring over id/label", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "list_fonts", "toolbox": "text", "description": "When: Find a font family for set_text style.fontFamily. Returns {fonts:[{id, label, cat}], n} for fonts available on this machine. label is the family name \u2014 use it as style.fontFamily in set_text.", "schema": { "properties": { "limit": { "default": 100, "description": "Max rows", "maximum": 2000, "minimum": 1, "type": "integer" }, "q": { "description": "Case-insensitive substring over id/label/cat", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "add_text_layer", "toolbox": "text", "description": "When: Add a fill / stroke / shadow / glow / extrude layer to a caption. Append a shading layer to the clip's text look, at its natural place in the stack (shadows behind, strokes under the fills, fills on top) unless `at` is given. Returns {layerId}. Adjust it with set_text_layer; inspect the stack via clip.textStyle.layers. Also accepts a shape clip (its stack is clip.shapeStyle.layers); add_shape_layer is the same tool.", "schema": { "properties": { "at": { "description": "Insert index (0 = back-most); omitted = natural position", "type": "integer" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "kind": { "description": "Layer kind", "enum": [ "fill", "stroke", "shadow", "glow", "extrude" ], "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "kind" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_text_layer", "toolbox": "text", "description": "When: Change one shading layer of a caption or shape. Partial patch of one layer by id (or index). Nested objects (paint, paint.gradient, paint.effect) merge key by key. Paint kinds: solid, gradient (multi-stop, animatable offset, offsetSpeed for a moving gradient, space block|line|word|glyph|accentRun), texture (image path), effect (shine, shimmer, neon-pulse, glitch, chrome, dissolve). Strokes take strokeAlign center|outside|inside, a dash pattern with dashOffset, trimStart/trimEnd for a write-on, and sketchLength/sketchDeviation for a hand-drawn wobble. set_shape_layer is the same tool.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "id": { "description": "Layer id", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "layer": { "description": "Fields to change", "properties": { "blend": { "description": "Blend mode", "enum": [ "normal", "multiply", "screen", "overlay", "add", "darken", "lighten", "colorBurn", "linearBurn", "darkerColor", "colorDodge", "lighterColor", "softLight", "hardLight", "vividLight", "linearLight", "pinLight", "hardMix", "difference", "exclusion", "subtract", "divide", "hue", "saturation", "color", "luminosity" ], "type": "string" }, "blur": { "description": "Shadow blur / glow radius in px", "type": "number" }, "dash": { "description": "Stroke dash pattern", "enum": [ "solid", "dash", "dot", "dashdot" ], "type": "string" }, "dashOffset": { "description": "Dash phase in stroke widths (keyframe for marching ants)", "type": "number" }, "enabled": { "description": "On/off", "type": "boolean" }, "extrudeAngle": { "description": "Extrude direction in degrees", "type": "number" }, "extrudeDarken": { "description": "How much the far end darkens 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "extrudeSteps": { "description": "Extrude copies", "type": "integer" }, "id": { "description": "Stable layer id (lowercase); minted when omitted", "type": "string" }, "join": { "description": "Stroke corner join (default round)", "enum": [ "miter", "round", "bevel" ], "type": "string" }, "kind": { "description": "Layer kind", "enum": [ "fill", "stroke", "shadow", "glow", "extrude" ], "type": "string" }, "knockout": { "description": "A fill that punches through the layers beneath (hollow)", "type": "boolean" }, "miterLimit": { "description": "Miter join limit, 1-100 (default 4); lower it to cut off spikes on sharp corners", "type": "number" }, "offsetX": { "description": "px at pixelSize", "type": "number" }, "offsetY": { "description": "px at pixelSize", "type": "number" }, "opacity": { "description": "0..1", "maximum": 1, "minimum": 0, "type": "number" }, "paint": { "properties": { "color": { "description": "Solid colour, or the tint for texture/effect", "type": "string" }, "effect": { "properties": { "id": { "description": "Shader effect; list_text_effects has each one's params", "enum": [ "shine", "shimmer", "neon-pulse", "glitch", "chrome", "dissolve" ], "type": "string" }, "params": { "description": "{id: {type, value}} typed params \u2014 the type (scalar|color|text) and ids come from list_text_effects; a bare number is NOT accepted here. Scalar params keyframe as layer..effect.", "type": "object" } }, "type": "object" }, "gradient": { "properties": { "angle": { "description": "Degrees: 0 = left\u2192right, 90 = top\u2192bottom", "type": "number" }, "center": { "description": "[x, y] radial/sweep centre as box fractions (default [0.5, 0.5]; keyframable as gradient.center.x/y)", "items": { "type": "number" }, "type": "array" }, "kind": { "description": "Gradient shape", "enum": [ "linear", "radial", "sweep" ], "type": "string" }, "offset": { "description": "Shift along the axis in box widths (keyframable)", "type": "number" }, "offsetSpeed": { "description": "Box widths per second: a moving gradient", "type": "number" }, "oklab": { "description": "Interpolate in OKLab", "type": "boolean" }, "repeat": { "description": "Tile instead of clamp", "type": "boolean" }, "scale": { "description": "Axis length multiplier", "type": "number" }, "space": { "description": "Box the gradient maps onto (text only; a shape always uses its own box)", "enum": [ "block", "line", "word", "glyph", "accentRun" ], "type": "string" }, "stops": { "description": "Colour stops in order; list_gradient_presets has ready-made sets", "items": { "properties": { "color": { "description": "#RRGGBB or #AARRGGBB", "type": "string" }, "pos": { "description": "Position along the axis", "maximum": 1, "minimum": 0, "type": "number" } }, "type": "object" }, "type": "array" } }, "type": "object" }, "kind": { "description": "Paint source", "enum": [ "solid", "gradient", "texture", "effect" ], "type": "string" }, "texture": { "properties": { "angle": { "description": "Degrees", "type": "number" }, "offset": { "description": "[x, y] shift as box fractions", "items": { "type": "number" }, "type": "array" }, "path": { "description": "Absolute image path", "type": "string" }, "scale": { "description": "Scale", "type": "number" }, "tile": { "description": "Tile (else cover the block)", "type": "boolean" } }, "type": "object" } }, "type": "object" }, "scope": { "description": "Which words the layer paints (text only)", "enum": [ "all", "base", "accent" ], "type": "string" }, "sketchDeviation": { "description": "Hand-drawn jitter amount in px", "type": "number" }, "sketchLength": { "description": "Hand-drawn jitter segment length in px; 0 = off", "type": "number" }, "sketchSeed": { "description": "Jitter seed", "type": "integer" }, "spread": { "description": "Shadow/glow dilation in px", "type": "number" }, "strokeAlign": { "description": "Where a stroke sits on the outline (default outside on text, inside on shapes)", "enum": [ "center", "outside", "inside" ], "type": "string" }, "trimEnd": { "description": "Stroke write-on end 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "trimStart": { "description": "Stroke write-on start 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "width": { "description": "Stroke width or extrude depth in px", "type": "number" } }, "type": "object" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "layer" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "remove_text_layer", "toolbox": "text", "description": "When: Delete a shading layer. Remove the layer and any keyframes on it. Works on text and shape clips.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "id": { "description": "Layer id", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "id" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "move_text_layer", "toolbox": "text", "description": "When: Reorder shading layers. Move the layer to index `to` (0 = back-most, drawn first). Works on text and shape clips.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "id": { "description": "Layer id", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "to": { "description": "Destination index", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "id", "to" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_text_looks", "toolbox": "text", "description": "When: One-click text looks. Returns {looks:[{id, label, params:[{id,type,label,default,min,max}]}]}: Plain, Shadow, Lift, Hollow, Splice, Outline, Echo, Glitch, Neon, Background, Curve, Gradient, Shine, Chrome, Holographic. apply_text_look rewrites the layer stack from one.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "apply_text_look", "toolbox": "text", "description": "When: Give a caption a look (Neon, Shadow, Gradient\u2026). Rewrite the clip's shading stack from the look's recipe and its params. The style keeps the look id: re-applying the SAME look with params adjusts just those params (the rest stay as they are), a different look starts from its defaults. Editing a layer by hand detaches the look. Clears packId. Fails type_mismatch on a non-text clip.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "look": { "description": "Look id from list_text_looks", "type": "string" }, "params": { "description": "Param overrides {id: value}", "type": "object" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "look" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_text_animations", "toolbox": "text", "description": "When: In / Out / Loop text animation presets. Returns {presets:[{id, label, category, slots:[in|out|loop], sampleText, params:[\u2026], flags:{unitLocked, orderLocked, easeLocked, durationLocked, mirrorForOut, mode}, builtIn, order}]}. `which` filters to one slot. Every In/Out preset takes duration, stagger, unit (block|character|word|line), order and ease plus its own params, except the controls its flags lock; Loop presets take period and amount. Categories: basic, character, word, kinetic, light, colour, hold, imported (user: ids from import_text_animation).", "schema": { "properties": { "q": { "description": "Filter by id/label substring", "type": "string" }, "which": { "description": "Slot to list for (default all)", "enum": [ "in", "out", "loop" ], "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "set_text_animation", "toolbox": "text", "description": "When: Animate a caption in, out, or while on screen. Set one of the three animation slots. `preset` picks a preset (a different id resets the params to its defaults unless keepControls is true; \"none\" clears). `duration`, `stagger`, `unit`, `order`, `ease` and `params` then fine-tune it \u2014 check the preset's flags from list_text_animations first: unitLocked/orderLocked/easeLocked/durationLocked mean that control is ignored. `animators` installs an inline AE-style animator tree instead of a preset (expert). Loop slots take `period` (0 = one pass over the whole clip: hold motion like tracking-drift) and `amount`. Fails type_mismatch on a non-text clip.", "schema": { "properties": { "amount": { "description": "Loop strength shortcut, for presets with an amount param", "type": "number" }, "animators": { "description": "Inline animator tree (expert)", "type": "array" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "delay": { "description": "Seconds", "maximum": 10, "minimum": 0, "type": "number" }, "duration": { "description": "Seconds per unit", "maximum": 10, "minimum": 0, "type": "number" }, "durationOverride": { "description": "Seconds: total motion length overriding the preset's timing; 0 = preset default", "maximum": 60, "minimum": 0, "type": "number" }, "ease": { "description": "Ease", "enum": [ "linear", "easeIn", "easeOut", "easeInOut", "back", "bounce", "smooth" ], "type": "string" }, "enabled": { "description": "On/off", "type": "boolean" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "keepControls": { "description": "When switching preset, keep duration/stagger/unit/order/ease/period/amount", "type": "boolean" }, "order": { "description": "Order", "enum": [ "forward", "backward", "centerOut", "random" ], "type": "string" }, "params": { "description": "Preset params {id: value}", "type": "object" }, "period": { "description": "Loop period seconds", "maximum": 60, "minimum": 0, "type": "number" }, "preset": { "description": "Preset id, or none", "type": "string" }, "stagger": { "description": "Seconds between units", "maximum": 2, "minimum": 0, "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "unit": { "description": "Unit", "enum": [ "block", "character", "word", "line" ], "type": "string" }, "which": { "description": "Slot", "enum": [ "in", "out", "loop" ], "type": "string" } }, "required": [ "which" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "clear_text_animation", "toolbox": "text", "description": "When: Remove a caption's in/out/loop animation. Empties the slot.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "which": { "description": "Slot", "enum": [ "in", "out", "loop" ], "type": "string" } }, "required": [ "which" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "import_text_animation", "toolbox": "text", "description": "When: Import an After Effects / Lottie text animation as a preset. Reads a Lottie JSON (or .lottie) whose text layer carries animators, or a Drift preset file, and saves it as a user preset in the given slot's Imported category. Returns {id, unsupported:[\u2026]} \u2014 the list says what the importer had to drop (expressions, 3D rotation\u2026).", "schema": { "properties": { "path": { "description": "Absolute path to a .json / .lottie / .drifttextanim file", "type": "string" }, "which": { "description": "Slot to file it under (default: guessed from the motion)", "enum": [ "in", "out", "loop" ], "type": "string" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "apply_text_style_to_all", "toolbox": "text", "description": "When: Copy a caption's style to every other subtitle clip. Copies this clip's style (layers, look, animation; not its keyframes) to every other SUBTITLE clip on its track, or in the project with scope project \u2014 title (text) clips are left alone. Returns {changed}.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "scope": { "description": "track (default) or project", "enum": [ "track", "project" ], "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "apply_text_preset", "toolbox": "text", "description": "When: Restyle an existing title. Apply a text style pack (builtin from list_text_presets, or a user: id from list_user_text_presets) to a text or subtitle clip. Replaces the whole style \u2014 font, layers AND the in/out/loop animation slots \u2014 and records it as packId. Unknown id fails not_found; a non-text clip fails type_mismatch.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "preset": { "description": "Preset id from list_text_presets", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "preset" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_user_text_presets", "toolbox": "text", "description": "When: User-saved text styles. Returns {presets:[{id, label}]}. Apply with apply_user_text_preset.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "apply_user_text_preset", "toolbox": "text", "description": "When: Apply a saved text style. Apply a user-saved text style from list_user_text_presets.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "preset": { "description": "Preset id from list_user_text_presets", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "preset" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "save_text_preset", "toolbox": "text", "description": "When: Save this clip's text style. Save the clip's current text style as a user preset. Returns {id, label}.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "label": { "description": "Preset name", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "label" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "rename_user_text_preset", "toolbox": "text", "description": "When: Rename a saved text style. Rename a user text preset. Not a project edit, so not undoable.", "schema": { "properties": { "label": { "description": "New name", "type": "string" }, "preset": { "description": "user: id from list_user_text_presets", "type": "string" } }, "required": [ "preset", "label" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "delete_user_text_preset", "toolbox": "text", "description": "When: Delete a saved text style. Delete a user text preset from disk. Clips that used it keep their style. Not undoable.", "schema": { "properties": { "preset": { "description": "user: id from list_user_text_presets", "type": "string" } }, "required": [ "preset" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "export_user_text_preset", "toolbox": "text", "description": "When: Write a saved text style to a file. Export a user text preset as a .drifttext JSON file. Returns {path}.", "schema": { "properties": { "path": { "description": "Absolute destination path", "type": "string" }, "preset": { "description": "user: id from list_user_text_presets", "type": "string" } }, "required": [ "preset", "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "import_user_text_preset", "toolbox": "text", "description": "When: Load a text style file as a user preset. Import a .drifttext file exported by export_user_text_preset. Returns {id, label}. Not undoable.", "schema": { "properties": { "path": { "description": "Absolute path to the file", "type": "string" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "rename_text_animation_preset", "toolbox": "text", "description": "When: Rename an imported animation preset. Rename a user: animation preset from import_text_animation. Not undoable.", "schema": { "properties": { "label": { "description": "New name", "type": "string" }, "preset": { "description": "user: id from list_text_animations", "type": "string" } }, "required": [ "preset", "label" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "delete_text_animation_preset", "toolbox": "text", "description": "When: Delete an imported animation preset. Delete a user: animation preset from disk. Slots that use it fall back to no motion. Not undoable.", "schema": { "properties": { "preset": { "description": "user: id from list_text_animations", "type": "string" } }, "required": [ "preset" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "export_text_animation_preset", "toolbox": "text", "description": "When: Write an imported animation preset to a file. Export a user: animation preset as a .drifttextanim JSON file. Returns {path}.", "schema": { "properties": { "path": { "description": "Absolute destination path", "type": "string" }, "preset": { "description": "user: id from list_text_animations", "type": "string" } }, "required": [ "preset", "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_gradient_presets", "toolbox": "text", "description": "When: Ready-made gradient stop sets. Returns {presets:[{id, label, kind, angle, stops:[{pos, color}]}], n}: sunset, ocean, candy, gold, chrome, rainbow, fire, ice, mono, holo, mint, berry. Copy stops/kind/angle into a layer's paint.gradient (set_text_layer / set_shape_layer), or pass the id as the gradient look's preset param.", "schema": { "properties": { "q": { "description": "Case-insensitive substring over id/label", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "list_text_effects", "toolbox": "text", "description": "When: Shader effects a fill can be painted with. Returns {effects:[{id, label, params:[{id, type, label, default, min, max, options?}]}], n}: shine, shimmer, neon-pulse, glitch, chrome, dissolve. Use as paint:{kind:\"effect\", effect:{id, params:{:{type, value}}}} on a text or shape layer; scalar params keyframe as layer..effect..", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "duplicate_text_layer", "toolbox": "text", "description": "When: Copy a shading layer in place. Insert a copy of the layer right above it. Returns {layerId}. Works on text and shape clips; duplicate_shape_layer is the same tool.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "id": { "description": "Layer id", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "id" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_effects", "toolbox": "effects", "description": "When: See available video effects. The installable catalog, not what is on a clip. Default reply is compact: {cats:{:[{id, label}\u2026]}, n}. Pass id for one effect with its params [{key, type, default, min, max, bool}], cat for a whole category with params, or q for a substring match (params included when \u22645 hits). Use id with add_effect and param keys with set_effect_param. To see a clip's current stack use inspect({clips:true,detail:true}).", "schema": { "properties": { "cat": { "description": "Category name from the default reply", "type": "string" }, "id": { "description": "One effect id (aliases such as adjust_contrast resolve)", "type": "string" }, "limit": { "default": 50, "description": "Max rows for q", "maximum": 500, "minimum": 1, "type": "integer" }, "q": { "description": "Case-insensitive substring over id/label/cat", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "list_audio_effects", "toolbox": "effects", "description": "When: See available audio effects. The installable catalog, not what is on a clip. Same shape and modes as list_effects: compact {cats, n} by default; id, cat or q for params. Use id with add_audio_effect.", "schema": { "properties": { "cat": { "description": "Category name from the default reply", "type": "string" }, "id": { "description": "One audio effect id", "type": "string" }, "limit": { "default": 50, "description": "Max rows for q", "maximum": 500, "minimum": 1, "type": "integer" }, "q": { "description": "Case-insensitive substring over id/label/cat", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "list_transitions", "toolbox": "effects", "description": "When: See available transitions. Same shape and modes as list_effects: compact {cats, n} by default; id, cat or q for params. Pass the id as `kind` to add_transition (default crossfade).", "schema": { "properties": { "cat": { "description": "Category name from the default reply", "type": "string" }, "id": { "description": "One transition id", "type": "string" }, "limit": { "default": 50, "description": "Max rows for q", "maximum": 500, "minimum": 1, "type": "integer" }, "q": { "description": "Case-insensitive substring over id/label/cat", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "list_animations", "toolbox": "effects", "description": "When: See shader-based in/out animation packages. Lists installed animation packages (bundled, add-ons and your own): {animations:[{id, displayName, category, directions, defaultDurationMs}], n}. Pass the id as `kind` to set_animation; built-in kinds (slideUp, pop, \u2026) are not listed here.", "schema": { "properties": { "id": { "description": "One animation id", "type": "string" }, "q": { "description": "Case-insensitive substring over id/name/category", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "add_effect", "toolbox": "effects", "description": "When: Put a video effect on a clip. Append a video effect to the end of the clip's stack. Returns effectIndex \u2014 its stack position, which is what every other effect op takes as index (the reply's own index is the clip's position on its track). Ids are matched case-insensitively with '.' and '_' interchangeable; an unknown id fails not_found with the nearest ids. The stack is stored on an adjustment clip linked to the target (created on its own lane the first time, and reported as host:{track,index,clip}); keep addressing the original clip in every effect op, and expect that extra lane in inspect.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "effect": { "description": "Effect catalog id from list_effects", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "effect" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "copy_effects", "toolbox": "effects", "description": "When: Give other clips the same grade. Copy a clip's whole effect stack (video and audio effects, with their keyframes rescaled to each target's length) onto other clips, appended after any effects they already have, in one undo step. Audio effects only land on clips with audio. Clears nothing: remove a target's effects first for a replacement. Repeated target ids count once. Fails before anything is changed: not_found when the source has no effects or a target id is unknown, bad_args for an adjustment target or an effect the target's track can't take. Returns to:[{id, effects, audioEffects}] with what each target actually received, and not_installed:[ids] for copied effects whose addon is missing.", "schema": { "properties": { "from": { "description": "Source clip id", "type": "string" }, "to": { "description": "Target clip ids", "items": { "description": "Target clip id", "type": "string" }, "type": "array" } }, "required": [ "from", "to" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "remove_effect", "toolbox": "effects", "description": "When: Remove a video effect. Remove a video effect by stack index. Later effects shift down one position.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 required: on effect ops `index` is the effect's stack position, not the clip's", "type": "string" }, "index": { "description": "0-based position in this clip's effect stack \u2014 NOT a catalog id. Read the stack from inspect({clips:true,detail:true}), or use the effectIndex returned by add_effect/add_audio_effect.", "type": "integer" } }, "required": [ "clip", "index" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "remove_all_effects", "toolbox": "effects", "description": "When: Strip every effect from a clip. Remove all of a clip's video and audio effects in one undo step: the adjustments pinned to it are deleted, and a nested lane left empty goes too. masks:true also removes its masks. The clip's effect host id (from add_effect) works too. Only this clip: a linked audio partner keeps its own effects, so call again with its id. Returns removed, the number of adjustment clips deleted (0: nothing to remove, no undo step).", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "masks": { "description": "Also remove the clip's masks. Default false", "type": "boolean" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "set_effect_param", "toolbox": "effects", "description": "When: Tweak a video effect. Set one numeric/boolean video effect parameter, or a clip param (type \"clip\", e.g. depth.occlude's target) to a clip id string \u2014 \"\" leaves the choice to the effect. Fails not_found on a key the effect does not declare or a stack index that is not there. Take keys from list_effects({id}). Use set_effect_color_param for colors.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 required: on effect ops `index` is the effect's stack position, not the clip's", "type": "string" }, "index": { "description": "0-based position in this clip's effect stack \u2014 NOT a catalog id. Read the stack from inspect({clips:true,detail:true}), or use the effectIndex returned by add_effect/add_audio_effect.", "type": "integer" }, "key": { "description": "Parameter key from the effect's params in list_effects", "type": "string" }, "value": { "description": "Value (booleans as 0/1; a clip id for clip params); range from list_effects({id})", "type": [ "number", "string" ] } }, "required": [ "clip", "index", "key", "value" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "add_audio_effect", "toolbox": "effects", "description": "When: Put an audio effect on a clip. Append an audio effect to the clip's audio stack. Returns effectIndex \u2014 its stack position. The audio stack is numbered separately from the video effect stack. Fails not_found on an unknown id. Like add_effect, the stack lives on a linked adjustment clip reported as host; keep addressing the original clip.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "effect": { "description": "Audio effect catalog id from list_audio_effects", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "effect" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "remove_audio_effect", "toolbox": "effects", "description": "When: Remove an audio effect. Remove an audio effect by stack index. Later effects shift down one position.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 required: on effect ops `index` is the effect's stack position, not the clip's", "type": "string" }, "index": { "description": "0-based position in this clip's effect stack \u2014 NOT a catalog id. Read the stack from inspect({clips:true,detail:true}), or use the effectIndex returned by add_effect/add_audio_effect.", "type": "integer" } }, "required": [ "clip", "index" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "set_audio_effect_param", "toolbox": "effects", "description": "When: Tweak an audio effect. Set one audio effect parameter (booleans as 0/1). Fails not_found on a key the effect does not declare or a stack index that is not there. Take keys from list_audio_effects({id}).", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 required: on effect ops `index` is the effect's stack position, not the clip's", "type": "string" }, "index": { "description": "0-based position in this clip's effect stack \u2014 NOT a catalog id. Read the stack from inspect({clips:true,detail:true}), or use the effectIndex returned by add_effect/add_audio_effect.", "type": "integer" }, "key": { "description": "Parameter key from list_audio_effects", "type": "string" }, "value": { "description": "Value (booleans as 0/1); range from list_audio_effects({id})", "type": "number" } }, "required": [ "clip", "index", "key", "value" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "add_transition", "toolbox": "effects", "description": "When: Bridge two adjacent clips. Add or replace a transition between this clip and the next eligible clip on the same track (the neighbour with the earliest start after it); fails bad_args when there is none. Video, shape, text and audio tracks take transitions; on an audio track only the sound matters, so only crossfade and dip kinds are accepted. Where clips only touch (a butt cut), the audio plays on into the media past the cut for a true crossfade, and dips through silence on a side with no media to spare. With linked_audio (default), a transition between two video clips whose separated audio sits back to back on one audio track gets the same crossfade there too, and later duration/kind/curve changes and removal carry across. Duration is forced to the physical overlap when the clips already overlap, and is floored at 0.1s otherwise. Replacing an existing transition clears its parameter overrides. Returns {id, kind, dur, track} \u2014 keep id for remove_transition and set_transition_*.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "duration": { "description": "Seconds (ignored when clips already overlap)", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "kind": { "default": "crossfade", "description": "Transition id from list_transitions; an unknown id fails not_found with the nearest ids", "type": "string" }, "linked_audio": { "default": true, "description": "Mirror onto the clips' linked audio", "type": "boolean" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "remove_transition", "toolbox": "effects", "description": "When: Remove a transition. Remove a transition by id from a track. Transition ids are unique within a track only, so track is required. Ids come from add_transition or inspect({clips:true,detail:true}).", "schema": { "properties": { "id": { "description": "Transition id returned by add_transition, or from inspect({clips:true,detail:true}) under tracks[].transitions. Unique within a track only.", "type": "string" }, "track": { "description": "Track index", "type": "integer" } }, "required": [ "track", "id" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "set_effect_enabled", "toolbox": "effects", "description": "When: Bypass a video effect without losing its settings. Bypass or re-enable one video effect without removing it; it keeps its stack position and parameters. Pick it by index (stack position) or by effect: a stack position, or a catalog id such as \"film.grain\" when the clip has exactly one effect of that id (bad_args lists the positions when it has several; not_found when there is no such effect). The reply's effectIndex is the stack position it changed.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 required: on effect ops `index` is the effect's stack position, not the clip's", "type": "string" }, "effect": { "description": "The effect: stack position, or catalog id from list_effects", "type": [ "integer", "string" ] }, "enabled": { "description": "Enabled", "type": "boolean" }, "index": { "description": "0-based position in this clip's effect stack \u2014 NOT a catalog id. Read the stack from inspect({clips:true,detail:true}), or use the effectIndex returned by add_effect/add_audio_effect.", "type": "integer" } }, "required": [ "clip", "enabled" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "move_effect", "toolbox": "effects", "description": "When: Change the order a clip's effects render in. Move a video effect to a different stack position. Effects render in stack order, so this changes the result. All indices between from and to shift.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "from": { "description": "0-based position in this clip's effect stack \u2014 NOT a catalog id. Read the stack from inspect({clips:true,detail:true}), or use the effectIndex returned by add_effect/add_audio_effect.", "type": "integer" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "to": { "description": "Destination stack position", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "from", "to" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_effect_color_param", "toolbox": "effects", "description": "When: Color effect param. Set a color-typed effect parameter. Use this instead of set_effect_param for params whose type is color in list_effects. Fails not_found on a key the effect has no colour parameter for, or a stack index that isn't there.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 required: on effect ops `index` is the effect's stack position, not the clip's", "type": "string" }, "index": { "description": "0-based position in this clip's effect stack \u2014 NOT a catalog id. Read the stack from inspect({clips:true,detail:true}), or use the effectIndex returned by add_effect/add_audio_effect.", "type": "integer" }, "key": { "description": "Parameter key from list_effects", "type": "string" }, "value": { "description": "Color #RRGGBB; alpha is not carried, effect colours bind as vec3", "type": "string" } }, "required": [ "clip", "index", "key", "value" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_audio_effect_enabled", "toolbox": "effects", "description": "When: Toggle audio effect. Bypass or re-enable an audio effect without removing it.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 required: on effect ops `index` is the effect's stack position, not the clip's", "type": "string" }, "enabled": { "description": "Enabled", "type": "boolean" }, "index": { "description": "0-based position in this clip's effect stack \u2014 NOT a catalog id. Read the stack from inspect({clips:true,detail:true}), or use the effectIndex returned by add_effect/add_audio_effect.", "type": "integer" } }, "required": [ "clip", "index", "enabled" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "move_audio_effect", "toolbox": "effects", "description": "When: Reorder audio effect. Move an audio effect to a different stack position. Audio effects process in stack order.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "from": { "description": "0-based position in this clip's effect stack \u2014 NOT a catalog id. Read the stack from inspect({clips:true,detail:true}), or use the effectIndex returned by add_effect/add_audio_effect.", "type": "integer" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "to": { "description": "Destination stack position", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "from", "to" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_effect_templates", "toolbox": "effects", "description": "When: Find a preset bundle id before apply_effect_template. Returns {templates:[{id, label, cat}]} \u2014 preset bundles of effects and parameters. Use id with apply_effect_template.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "apply_effect_template", "toolbox": "effects", "description": "When: Drop a preset effect bundle onto a clip. Apply a preset effect pack to a clip, appending its effects to the clip's stack.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "template": { "description": "Template id from list_effect_templates", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "template" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_transition_kind", "toolbox": "effects", "description": "When: Change transition type. Swap an existing transition to another kind. This clears its parameter overrides.", "schema": { "properties": { "id": { "description": "Transition id returned by add_transition, or from inspect({clips:true,detail:true}) under tracks[].transitions. Unique within a track only.", "type": "string" }, "kind": { "description": "Transition id from list_transitions", "type": "string" }, "track": { "description": "Track index the transition lives on", "type": "integer" } }, "required": [ "track", "id", "kind" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_transition_duration", "toolbox": "effects", "description": "When: Make a transition longer or shorter. Set a transition's length in seconds. Ignored when the two clips physically overlap \u2014 the overlap dictates the duration there.", "schema": { "properties": { "duration": { "description": "Seconds", "type": "number" }, "id": { "description": "Transition id returned by add_transition, or from inspect({clips:true,detail:true}) under tracks[].transitions. Unique within a track only.", "type": "string" }, "track": { "description": "Track index", "type": "integer" } }, "required": [ "track", "id", "duration" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_transition_param", "toolbox": "effects", "description": "When: Tweak one numeric setting of a transition. Set one numeric transition parameter. Fails not_found on an unknown transition id or a key the transition doesn't declare; take keys from the transition's params in list_transitions.", "schema": { "properties": { "id": { "description": "Transition id returned by add_transition, or from inspect({clips:true,detail:true}) under tracks[].transitions. Unique within a track only.", "type": "string" }, "key": { "description": "Param key from list_transitions", "type": "string" }, "track": { "description": "Track index", "type": "integer" }, "value": { "description": "Value", "type": "number" } }, "required": [ "track", "id", "key", "value" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "copy_clip_effects", "toolbox": "effects", "description": "When: Copy a clip's effect stack. Copy the clip's video and audio effects to the effect clipboard.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "paste_clip_effects", "toolbox": "effects", "description": "When: Paste an effect stack. Paste the effect clipboard onto a clip. Fails bad_args when the clipboard is empty.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_effect_string_param", "toolbox": "effects", "description": "When: File/string effect param. Set a file- or string-typed effect parameter (e.g. face_swap's sourceImage). Value is an absolute path or file:// URL. Fails bad_args without index or key, and not_found on a key the effect doesn't declare.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 required: on effect ops `index` is the effect's stack position, not the clip's", "type": "string" }, "index": { "description": "0-based position in this clip's effect stack \u2014 NOT a catalog id. Read the stack from inspect({clips:true,detail:true}), or use the effectIndex returned by add_effect/add_audio_effect.", "type": "integer" }, "key": { "description": "Parameter key from list_effects", "type": "string" }, "value": { "description": "Absolute path, file:// URL, or string value", "type": "string" } }, "required": [ "clip", "index", "key", "value" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_user_effect_presets", "toolbox": "effects", "description": "When: User-saved effect stacks. Returns {presets:[{id, label, effectCount, audioEffectCount, labels}]}.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "apply_effect_preset", "toolbox": "effects", "description": "When: Apply a saved effect stack. Apply a user-saved effect stack from list_user_effect_presets onto a clip.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "preset": { "description": "Preset id from list_user_effect_presets", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "preset" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "save_effect_preset", "toolbox": "effects", "description": "When: Save this clip's effects. Save the clip's current video+audio effect stack as a user preset, or with effect_index just that one effect (audio:true for an audio effect). Returns {id, label}.", "schema": { "properties": { "audio": { "description": "effect_index is in the audio effect stack", "type": "boolean" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "effect_index": { "description": "0-based position in this clip's effect stack \u2014 NOT a catalog id. Read the stack from inspect({clips:true,detail:true}), or use the effectIndex returned by add_effect/add_audio_effect.", "type": "integer" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "label": { "description": "Preset name", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "label" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "rename_effect_preset", "toolbox": "effects", "description": "When: Rename a saved effect stack. Rename a preset from list_user_effect_presets. Not a project edit, so not undoable.", "schema": { "properties": { "label": { "description": "New name", "type": "string" }, "preset": { "description": "Preset id from list_user_effect_presets", "type": "string" } }, "required": [ "preset", "label" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "delete_effect_preset", "toolbox": "effects", "description": "When: Delete a saved effect stack. Delete a preset from disk. Clips that used it keep their effects. Not undoable.", "schema": { "properties": { "preset": { "description": "Preset id from list_user_effect_presets", "type": "string" } }, "required": [ "preset" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "export_effect_preset", "toolbox": "effects", "description": "When: Write a saved effect stack to a file. Export a preset as a JSON file. Returns {path}.", "schema": { "properties": { "path": { "description": "Absolute destination path", "type": "string" }, "preset": { "description": "Preset id from list_user_effect_presets", "type": "string" } }, "required": [ "preset", "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "import_effect_preset", "toolbox": "effects", "description": "When: Load an effect stack file as a preset. Import a file written by export_effect_preset. Returns {id, label}. Not undoable.", "schema": { "properties": { "path": { "description": "Absolute path to the file", "type": "string" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "effect_authoring_guide", "toolbox": "effects", "description": "When: How to write a custom effect. Read before create_effect. Returns {guide} \u2014 manifest grammar for effects, transitions and audio effects, every parameter type and the inspector control it becomes, GLSL rules, time effects (history: earlier source frames; previousOutput: the effect's last output) and working examples \u2014 plus {processors:[{processor, examples, params}]} for audio effects.", "schema": { "properties": { "kind": { "description": "Which catalog the package belongs to", "enum": [ "effect", "transition", "animation", "audio_effect" ], "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "create_effect", "toolbox": "effects", "description": "When: Write a new effect into My Effects. Create a GPU video effect, transition or audio effect from a manifest and shader sources. The package is parsed and its shaders compiled before anything is installed; failures return bad_manifest or shader_compile_failed with the driver log. Returns {id, kind, shaderCheck: ok|skipped|n/a}; id is user. and works with add_effect / add_transition / add_audio_effect immediately. Not undoable.", "schema": { "properties": { "binary_files": { "description": "{\"name.png\": \"\"} \u2014 static textures, thumbnail.png", "type": "object" }, "files": { "description": "{\"main.frag\": \"\"} \u2014 .frag/.glsl sources named by the pipeline", "type": "object" }, "kind": { "description": "Which catalog the package belongs to", "enum": [ "effect", "transition", "animation", "audio_effect" ], "type": "string" }, "manifest": { "description": "effect.json / transition.json / audio-effect.json body; id is set for you", "type": "object" }, "slug": { "description": "a-z, 0-9, _ (max 48); the id becomes user.", "type": "string" } }, "required": [ "kind", "slug", "manifest" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "update_effect", "toolbox": "effects", "description": "When: Replace a My Effects package. Same as create_effect but replaces an existing user package by id, keeping the id so clips already using it pick up the change. Bundled and add-on effects are refused (not_user_effect) \u2014 fork those with create_effect. Not undoable.", "schema": { "properties": { "binary_files": { "description": "{\"name.png\": \"\"}", "type": "object" }, "files": { "description": "All shader sources; the package is replaced, not merged", "type": "object" }, "id": { "description": "Existing user effect id", "type": "string" }, "kind": { "description": "Which catalog the package belongs to", "enum": [ "effect", "transition", "animation", "audio_effect" ], "type": "string" }, "manifest": { "description": "Full manifest body", "type": "object" } }, "required": [ "kind", "id", "manifest" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "get_effect_source", "toolbox": "effects", "description": "When: Read an effect's manifest and shaders. Returns {id, kind, user, uses, manifest, files:{name: source}, binaryFiles:[names]} for any package-backed effect, transition or audio effect \u2014 bundled ones too, to learn from or fork. uses (user packages only) is how many times the project uses it.", "schema": { "properties": { "id": { "description": "Id from list_effects / list_transitions / list_audio_effects", "type": "string" }, "kind": { "description": "Which catalog the package belongs to", "enum": [ "effect", "transition", "animation", "audio_effect" ], "type": "string" } }, "required": [ "kind", "id" ], "type": "object" }, "readOnly": true, "destructive": false }, { "name": "import_effect", "toolbox": "effects", "description": "When: Install a .driftfx file. Install an effect, transition or audio effect package exported by export_effect or Drift Forge into My Effects. Returns {ids, kind, name}; the id works with add_effect / add_transition / add_audio_effect. Fails exists when that package is already installed unless overwrite:true. Not undoable.", "schema": { "properties": { "overwrite": { "description": "Replace an installed package with the same folder", "type": "boolean" }, "path": { "description": "Absolute path to the .driftfx file", "type": "string" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "delete_effect", "toolbox": "effects", "description": "When: Remove a My Effects package. Delete a user effect, transition or audio effect. Refuses with in_use when the project uses it unless force:true (those uses then render as passthrough). Not undoable.", "schema": { "properties": { "force": { "description": "Delete even if the project uses it", "type": "boolean" }, "id": { "description": "User effect id", "type": "string" }, "kind": { "description": "Which catalog the package belongs to", "enum": [ "effect", "transition", "animation", "audio_effect" ], "type": "string" } }, "required": [ "kind", "id" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "export_effect", "toolbox": "effects", "description": "When: Save a shareable .driftfx. Pack a My Effects package into a .driftfx the user can import elsewhere. Without path, or when Drift is sandboxed (flatpak, snap) and path is outside its data folder, or the write fails, the file goes to Drift's exports folder instead. Returns {path, fellBack, reason?} \u2014 tell the user the returned path.", "schema": { "properties": { "author": { "description": "Shown in the import dialog", "type": "string" }, "description": { "description": "Shown in the import dialog", "type": "string" }, "id": { "description": "User effect id", "type": "string" }, "kind": { "description": "Which catalog the package belongs to", "enum": [ "effect", "transition", "animation", "audio_effect" ], "type": "string" }, "path": { "description": "Absolute .driftfx output path (optional)", "type": "string" } }, "required": [ "kind", "id" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_project_setup", "toolbox": "project", "description": "When: Change canvas size or frame rate. Set project width, height, and fps. Changing width/height rebases every clip's canvas transform onto the new size (same helper apply_canvas_crop uses) so existing clips stay visually in place rather than jumping; fps does not retime clips.", "schema": { "properties": { "fps": { "description": "Frames per second", "type": "integer" }, "height": { "description": "Canvas height pixels", "type": "integer" }, "width": { "description": "Canvas width pixels", "type": "integer" } }, "required": [ "width", "height", "fps" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_background", "toolbox": "project", "description": "When: Change canvas background. Set background kind, color, and/or blur strength. At least one field is required. blurStrength only has a visible effect when kind is blur. kind=transparent clears the canvas so alpha video and export with VP9 (alpha) / ProRes 4444 keep holes.", "schema": { "properties": { "blurStrength": { "description": "Blur amount", "maximum": 200, "minimum": 0, "type": "number" }, "color": { "description": "Background color #AARRGGBB", "type": "string" }, "kind": { "description": "Background kind", "enum": [ "color", "blur", "transparent" ], "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_metadata", "toolbox": "project", "description": "When: Set project title and author. Set project metadata. Omitted fields are left unchanged.", "schema": { "properties": { "author": { "description": "Author name", "type": "string" }, "description": { "description": "Project description", "type": "string" }, "title": { "description": "Project title", "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "quit_instance", "toolbox": "project", "description": "When: Quit an agent-launched instance. Quit this Drift process. Only an instance started by launch_instance (an isolated session) accepts it; the user's own editor answers not_isolated. Refuses busy while a save or load is running, and unsaved_changes when inspect.dirty is true unless discard:true. Through the stdio bridge, use close_instance({id}) instead.", "schema": { "properties": { "discard": { "description": "Quit even with unsaved changes, losing them", "type": "boolean" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "get_performance", "toolbox": "project", "description": "When: Read playback and cache settings. The global settings that decide how much is decoded and kept (Settings \u203a Performance and Settings \u203a Preview). Returns {settings:{frame_cache_mib (0 = automatic), preview_quality, decode_mode, read_ahead_ms, continuous_read_ahead, stale_frame_lag_ms, target_pool_max, target_pool_mib, upload_cache_max, upload_cache_mib, reader_history_mib, prefer_hardware_export}, frame_cache_budget_mib (what the frame cache is actually capped at, automatic resolved), decode_modes:[ids decode_mode takes on this machine]}.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "set_performance", "toolbox": "project", "description": "When: Tune playback and cache settings. Change the global settings get_performance reports; only supplied keys change. They are the user's own settings, kept across sessions: change them for a round, then pass the reply's previous back to restore them. frame_cache_mib caps the decoded frame cache (0 = automatic, an eighth of RAM (a sixteenth on Android), at least 128; else 128\u20138192); clear_cache frees what's cached now. preview_quality auto|full|half|quarter|eighth. read_ahead_ms (0\u20135000) is how much each clip decodes ahead during playback. reset:true first puts the Performance page back to its defaults (not preview_quality or decode_mode). Out-of-range values are refused, and nothing changes. Not undoable. Returns get_performance's reply plus previous:{key: old value} for each key that changed.", "schema": { "properties": { "continuous_read_ahead": { "description": "Keep decoding until the read-ahead window is full; off decodes one frame ahead per frame shown", "type": "boolean" }, "decode_mode": { "description": "auto, software, or a hw: id from get_performance's decode_modes", "type": "string" }, "frame_cache_mib": { "description": "Decoded frame cache cap in MiB; 0 = automatic, else 128\u20138192", "type": "integer" }, "prefer_hardware_export": { "description": "Export with the GPU encoder when there is one", "type": "boolean" }, "preview_quality": { "description": "Preview resolution", "enum": [ "auto", "full", "half", "quarter", "eighth" ], "type": "string" }, "read_ahead_ms": { "description": "Decode-ahead per clip during playback, 0\u20135000", "type": "integer" }, "reader_history_mib": { "description": "Decoded history per reader, 0\u20131024 (0 = frame count only)", "type": "integer" }, "reset": { "description": "Put the Performance page back to its defaults first", "type": "boolean" }, "stale_frame_lag_ms": { "description": "Drop preview frames this late, 0\u20131000 (0 never)", "type": "integer" }, "target_pool_max": { "description": "Render targets kept, 4\u201364", "type": "integer" }, "target_pool_mib": { "description": "Render target memory cap, 0\u20134096 (0 none)", "type": "integer" }, "upload_cache_max": { "description": "GPU uploads kept, 8\u201396", "type": "integer" }, "upload_cache_mib": { "description": "GPU upload memory cap, 0\u20134096 (0 none)", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "memory_stats", "toolbox": "project", "description": "When: Where Drift's memory goes. Returns {process:{rss_bytes, peak_rss_bytes} (-1 where the platform does not say), frame_cache:{bytes, frames, gpu_frames, budget_bytes, setting_mib} (decoded frames the readers cache; GPU surfaces are counted in frames, not bytes; setting_mib 0 = automatic, an eighth of RAM), decoders:{readers (files open for decoding, each with its own decoders), video_workers, audio_workers (decode threads; one can run several readers)}, undo_history:{steps, undoable} (each step holds full project snapshots)}.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "clear_cache", "toolbox": "project", "description": "When: Free decoded frames and decoders. Close every decoder not in the middle of a read, and the frames it cached; the next frame reopens what it needs (a brief stutter). The project and undo history are untouched. Returns {before, after}, each {frame_cache, decoders} as in memory_stats. Not undoable.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "save_project", "toolbox": "project", "description": "When: Save the project file. Save the open project. With path omitted, saves to the current project path (inspect.path); fails bad_args when the project has never been saved. With path given, writes a .drift bundle there, creating parent folders as needed. saveAs:true duplicates instead: the copy at path gets its own id and takes its title from the file name, the session continues in it, and the file it was opened from is left untouched \u2014 path is required and must differ from inspect.path. Returns ok once the save is dispatched \u2014 it does NOT report a failed write. Confirm with inspect: dirty should be false and path should match.", "schema": { "properties": { "path": { "description": "Absolute .drift path; omit to save to the current path", "type": "string" }, "saveAs": { "description": "Save a duplicate at path and keep editing it", "type": "boolean" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_export_options", "toolbox": "project", "description": "When: See codecs, scales, and fps choices. Returns {scales:[{id,w,h}], fps:[{id}], video:[{id,label}], audio:[{id,label}], gif, folder} \u2014 only codecs available on this machine are listed. Does not list rate or preset values; those live in the export_video schema.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "export_video", "toolbox": "project", "description": "When: Render the timeline to a file. Start an async encode and return immediately with {started, path, busy}. Poll inspect().export.{active,progress} or export_status until active is false. Fails export_busy when an encode is already running \u2014 cancel_export first. The output path is normalised: a directory gets . appended and a suffix-less path gets the container extension added, so use the path echoed in the reply, not the one you sent. Range bakes (list_bakes) are reused where fresh; a stale one is rendered live unless bakes:\"all\". The reply adds bakes (the mode) and bakes_reused:{n, stale, stale_skipped} (bakes read, stale ones among them, stale ones rendered live); GIF and audio-only exports read no bakes and get no bakes_reused. bakes is never inherited from an earlier export. Omitted settings inherit from the last export in this app profile, then defaults \u2014 pass every setting you care about rather than relying on them.", "schema": { "properties": { "audio": { "description": "Audio codec id from list_export_options.audio (aac, opus, \u2026)", "type": "string" }, "audioBitrateKbps": { "description": "Alias of audio_bitrate", "type": "integer" }, "audioCodecId": { "description": "Alias of audio", "type": "string" }, "audioOnly": { "description": "Alias of audio_only", "type": "boolean" }, "audio_bitrate": { "description": "Audio kbps", "type": "integer" }, "audio_only": { "description": "Encode audio only. Forced off when gif is true.", "type": "boolean" }, "bakes": { "description": "Range bakes the export may reuse: fresh (default) skips stale ones and renders their range live; all reuses stale ones too (the old picture, faster); none renders everything live", "enum": [ "fresh", "all", "none" ], "type": "string" }, "bitrate": { "description": "Video kbps when rate is bitrate", "type": "integer" }, "crf": { "description": "Quality when rate is crf (lower is better)", "maximum": 51, "minimum": 0, "type": "integer" }, "exportWorkAreaOnly": { "description": "Alias of work_area", "type": "boolean" }, "fps": { "description": "Output fps; 0 = project rate. An fps id from list_export_options is also accepted as a string.", "type": [ "number", "string" ] }, "fpsDen": { "description": "Output fps denominator", "maximum": 1000, "minimum": 1, "type": "integer" }, "fpsNum": { "description": "Output fps numerator (with fpsDen); alias of fps", "type": "integer" }, "gif": { "description": "Encode animated GIF. Forces audio_only off and, when no fps is given, 15fps.", "type": "boolean" }, "gifExport": { "description": "Alias of gif", "type": "boolean" }, "height": { "description": "Target height in pixels; 0 = project height", "type": "integer" }, "in": { "description": "Range start seconds. Overrides work_area.", "type": "number" }, "out": { "description": "Range end seconds; must be greater than in.", "type": "number" }, "path": { "description": "Absolute output path, or a directory to auto-name inside", "type": "string" }, "preset": { "description": "Encoder speed/quality preset. Defaults to the codec's own default (medium for x264, p4 for NVENC).", "type": "string" }, "rate": { "description": "Rate control mode \u2014 decides whether crf or bitrate is honoured. Defaults to crf. Not listed by list_export_options; crf is only applied by codecs that support it, otherwise the encoder falls back to bitrate.", "enum": [ "crf", "bitrate" ], "type": "string" }, "rateControl": { "description": "Alias of rate", "enum": [ "crf", "bitrate" ], "type": "string" }, "scale": { "description": "Scale id from list_export_options", "type": "string" }, "scaleId": { "description": "Alias of scale", "type": "string" }, "targetHeight": { "description": "Alias of height", "type": "integer" }, "video": { "description": "Video codec id from list_export_options.video (h264, hevc, \u2026)", "type": "string" }, "videoBitrateKbps": { "description": "Alias of bitrate", "type": "integer" }, "videoCodecId": { "description": "Alias of video", "type": "string" }, "videoPreset": { "description": "Alias of preset", "type": "string" }, "work_area": { "description": "Limit to the In/Out work area. Fails bad_args when no work area is set. Ignored when in/out are given.", "type": "boolean" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "export_status", "toolbox": "project", "description": "When: Check an in-flight encode. Returns {busy, progress 0..1, message}. Same data as inspect().export.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "wait_idle", "toolbox": "project", "description": "When: Wait for background work to finish. Blocks until background work settles or `timeout` seconds pass (default 30, max 600), then returns {idle, waited, busy?, suspended?}: busy is what was still running, {kind: count} (jobs: by job kind); suspended lists filmstrips/waveforms paused by playback, which don't hold the wait. kinds limits the wait; default all: probe, thumbnails, proxy, filmstrips, waveforms, export, project (save, load, package, collect), subtitles, reverse, scenes, beats, stabilize, segmentation, denoise, faces, tracking, tts, align, bake, source_lab, loudness, bin_edit, downloads (add-ons, updates), jobs, and the job kinds transcribe, diarize, depth, restore, sfx. Other calls are served while it waits. Not inside apply.", "schema": { "properties": { "kinds": { "description": "Only wait for these", "items": { "description": "Kind of work", "type": "string" }, "type": "array" }, "timeout": { "description": "Seconds to wait at most", "maximum": 600, "minimum": 0, "type": "number" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "validate_project", "toolbox": "project", "description": "When: Check the project is sound. Read-only health check, quick enough to run after every round. Returns {problems:[{kind, message, clip?, asset?, track?, sequence?}], n, counts?:{kind: n}, truncated?, open_sequence?}; rows without sequence are on the main timeline. Kinds: missing_media (file gone; clips: how many use the asset), missing_asset (a clip's asset isn't in the project), asset_mismatch (a clip plays another file than its asset), range_past_media (out point past the end of its media), overlap (overlap off; crossfades don't count), orphaned_effect (pinned to a clip that's gone), empty_lane, broken_link (A/V link with one side missing), dangling_transition. overlap and broken_link are advisory. Covers every composite's timeline too (sequence). Fixing is up to you.", "schema": { "properties": { "limit": { "description": "Rows at most (default 200)", "maximum": 1000, "minimum": 1, "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "load_project", "toolbox": "project", "description": "When: Open a project file. Load a .drift bundle or a JSON document from Save as JSON, replacing the open timeline. JSON is an import: inspect.path stays empty and save_project still needs a .drift path. DISCARDS unsaved changes without warning and clears the undo stack \u2014 save_project first if the current project matters (inspect.dirty tells you). Media whose file was rewritten in place since the project was saved is re-probed before this returns: those asset ids are in reprobed (new duration, clips clamped if it got shorter), and any that could not be re-read in stale.", "schema": { "properties": { "path": { "description": "Absolute .drift or .json path", "type": "string" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "new_project", "toolbox": "project", "description": "When: Throw away the open timeline and start blank. Discard the current timeline and create an empty project. DISCARDS unsaved changes without warning and clears the undo stack \u2014 check inspect.dirty and save_project first. Pass width+height (and optionally fps) to set the canvas in the same call; omitted values keep the project defaults. The user is never prompted with the layout chooser.", "schema": { "properties": { "fps": { "description": "Frames per second", "type": "integer" }, "height": { "description": "Canvas height pixels; requires width", "type": "integer" }, "width": { "description": "Canvas width pixels; requires height", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "close_project", "toolbox": "project", "description": "When: Close the open timeline and return to the start screen. Discard the current timeline and show the start screen, like the header's Close project. DISCARDS unsaved changes without warning and clears the undo stack \u2014 check inspect.dirty and save_project first. Afterwards the open document is an empty, untitled project; new_project or load_project leaves the start screen.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "package_project", "toolbox": "project", "description": "When: Save bundled copy. Write a copy of the project with all media embedded. Async: returns {started:true, path} immediately \u2014 poll inspect({detail:true}).jobs.package.{active,progress} until active is false.", "schema": { "properties": { "path": { "description": "Absolute output .drift path", "type": "string" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "cancel_package", "toolbox": "project", "description": "When: Abort a running package_project. Cancel an in-flight package job. Returns ok even when nothing was running; confirm with inspect({detail:true}).jobs.package.active.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "cancel_export", "toolbox": "project", "description": "When: Abort a running export_video. Cancel an in-flight export. Returns ok even when nothing was running; confirm with export_status. Use this before a new export_video if one is already busy.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "apply_canvas_crop", "toolbox": "project", "description": "When: Cut the canvas down to a pixel rectangle. Crop the project canvas to a pixel rectangle, changing the project width/height. Clip transforms are rebased onto the new canvas. width and height must be > 0.", "schema": { "properties": { "height": { "description": "Height pixels, must be > 0", "type": "number" }, "width": { "description": "Width pixels, must be > 0", "type": "number" }, "x": { "description": "Left pixels", "type": "number" }, "y": { "description": "Top pixels", "type": "number" } }, "required": [ "x", "y", "width", "height" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_export_presets", "toolbox": "project", "description": "When: Named export sizes. Returns {presets:[{id, label}]} \u2014 1080p, YouTube, vertical, and the rest. Use id with export_with_preset.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "export_with_preset", "toolbox": "project", "description": "When: Export using a named size. Start an async encode with a scale preset from list_export_presets. Same polling as export_video, and the same bakes argument and bakes / bakes_reused reply.", "schema": { "properties": { "bakes": { "description": "As export_video: fresh (default), all or none", "enum": [ "fresh", "all", "none" ], "type": "string" }, "path": { "description": "Absolute output path", "type": "string" }, "preset": { "description": "Scale preset id from list_export_presets", "type": "string" } }, "required": [ "path", "preset" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_animated_properties", "toolbox": "keyframes", "description": "When: See what already has keys. Returns {props:[\u2026]} \u2014 only the properties that already carry keyframes on this clip. Empty on a fresh clip. Property spellings live in the `prop` schema of the other keyframes ops (positionX, positionY, scaleX, scaleY, rotation, opacity, volume, fx.., afx.., mask., text., shape., vector.svg., model3d., pdf., proc.), not here.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "list_keyframes", "toolbox": "keyframes", "description": "When: Read keys for one property. Returns {prop, enabled, keys:[{seconds, value, inDx, inDy, outDx, outDy, corner, hold, easing, custom}]}. Times are timeline seconds. enabled is false when the property was muted via set_property_keyframes_enabled.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "prop": { "description": "Animated property: positionX, positionY, scaleX, scaleY, rotation, rotationX, rotationY, z, anchorX, anchorY, anchorZ, perspective, opacity, volume, fx.., afx.. (e.g. fx.0.amount), mask., or on a text/subtitle clip text. with key one of pixelSize, letterSpacing, lineHeight, boxPadding, pathBend, or a shading layer field text.layer...pos|effect.> (the legacy names outlineWidth, shadowBlur, glowRadius, gradientAngle, color.r\u2026 still map onto the stroke/shadow/glow/fill layers; colour channels 0..1). On a shape clip the same layer fields are shape.layer.. (a fresh shape's layers are \"fill\" and \"stroke\") and the geometry knobs shape.. On an SVG vector clip the svg.* overrides: vector.svg., vector.svg.., or the same under vector.svg.. On a 3D model clip model3d._> (n 1..4); a model is placed by its transform like any 3D layer (positionX, positionY, scaleX, scaleY, z, rotationX, rotationY, rotation, perspective), and the older model3d. are still accepted as shorthands that write those; model3d.modelScale and modelScaleZ resize the model about the clip's anchor (modelScaleZ only its depth). On a procedural clip proc. for any numeric, switch, enum or colour-channel param of its package (proc.tint.r, proc.origin.x for vec2). On a PDF clip pdf.scrollX and pdf.scrollY (page units: 1 moves one page, or one grid row/column) and pdf.zoom (0.1..10). positionX/Y is the clip anchor on the canvas (px), scaleX/Y a factor on the clip's frame (1 = fit size). Spellings live in this schema \u2014 list_animated_properties returns only properties that already have keys (empty on a fresh clip), so do not use it to learn names.", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "prop" ], "type": "object" }, "readOnly": true, "destructive": false }, { "name": "set_keyframe", "toolbox": "keyframes", "description": "When: Add or update a key. Add a keyframe, or overwrite the value of an existing one at that time. Creates the animation if the property had no keys yet. A prop the clip does not have (a text.* key on a video clip, a misspelt layer id) fails bad_args.", "schema": { "properties": { "at": { "description": "Timeline seconds", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "prop": { "description": "Animated property: positionX, positionY, scaleX, scaleY, rotation, rotationX, rotationY, z, anchorX, anchorY, anchorZ, perspective, opacity, volume, fx.., afx.. (e.g. fx.0.amount), mask., or on a text/subtitle clip text. with key one of pixelSize, letterSpacing, lineHeight, boxPadding, pathBend, or a shading layer field text.layer...pos|effect.> (the legacy names outlineWidth, shadowBlur, glowRadius, gradientAngle, color.r\u2026 still map onto the stroke/shadow/glow/fill layers; colour channels 0..1). On a shape clip the same layer fields are shape.layer.. (a fresh shape's layers are \"fill\" and \"stroke\") and the geometry knobs shape.. On an SVG vector clip the svg.* overrides: vector.svg., vector.svg.., or the same under vector.svg.. On a 3D model clip model3d._> (n 1..4); a model is placed by its transform like any 3D layer (positionX, positionY, scaleX, scaleY, z, rotationX, rotationY, rotation, perspective), and the older model3d. are still accepted as shorthands that write those; model3d.modelScale and modelScaleZ resize the model about the clip's anchor (modelScaleZ only its depth). On a procedural clip proc. for any numeric, switch, enum or colour-channel param of its package (proc.tint.r, proc.origin.x for vec2). On a PDF clip pdf.scrollX and pdf.scrollY (page units: 1 moves one page, or one grid row/column) and pdf.zoom (0.1..10). positionX/Y is the clip anchor on the canvas (px), scaleX/Y a factor on the clip's frame (1 = fit size). Spellings live in this schema \u2014 list_animated_properties returns only properties that already have keys (empty on a fresh clip), so do not use it to learn names.", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "value": { "description": "Property value, in the property's own units (pixels, degrees, 0..1)", "type": "number" } }, "required": [ "prop", "at", "value" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_keyframes", "toolbox": "keyframes", "description": "When: Write many keys at once (bulk path, smooth). Write many keys on one or more properties in ONE call and one undo step; use it instead of a set_keyframe per key for camera paths and other dense animation. `keys` maps each prop to an array of [seconds, value] pairs ({at, value} objects work too); times are timeline seconds, clamped to the clip like set_keyframe. A key at an existing time overwrites its value. `replace:true` first clears each listed prop's existing keys. `interpolation` is applied to every key of each listed prop afterwards: linear, hold, ease, or smooth (Catmull-Rom auto tangents from neighbouring keys, written as bezier handles, so velocity is continuous across keys; dense linear keys look jerky, ease stops at every key). Omit it to leave the tangents alone. Props are validated like set_keyframe; one bad prop fails bad_args and nothing is written. Never writes the other axis of positionX/positionY. Returns {written:{prop:count}}.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "interpolation": { "description": "Applied to every key of each listed prop after writing", "enum": [ "linear", "hold", "ease", "smooth" ], "type": "string" }, "keys": { "description": "{prop: [[seconds, value], ...]} e.g. {\"positionX\": [[0, 100], [2, 400]], \"z\": [[0, -800], [2, -500]]}", "type": "object" }, "replace": { "description": "Clear each listed prop's existing keys first (default false)", "type": "boolean" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "keys" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "remove_keyframe", "toolbox": "keyframes", "description": "When: Delete a key. Remove the keyframe NEAREST to `at` \u2014 there is no distance limit, so a time that misses every key still deletes the closest one. Confirm the exact key time with list_keyframes first. A prop with no keys fails not_found (so do the other per-key ops).", "schema": { "properties": { "at": { "description": "Timeline seconds of the key to delete", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "prop": { "description": "Animated property: positionX, positionY, scaleX, scaleY, rotation, rotationX, rotationY, z, anchorX, anchorY, anchorZ, perspective, opacity, volume, fx.., afx.. (e.g. fx.0.amount), mask., or on a text/subtitle clip text. with key one of pixelSize, letterSpacing, lineHeight, boxPadding, pathBend, or a shading layer field text.layer...pos|effect.> (the legacy names outlineWidth, shadowBlur, glowRadius, gradientAngle, color.r\u2026 still map onto the stroke/shadow/glow/fill layers; colour channels 0..1). On a shape clip the same layer fields are shape.layer.. (a fresh shape's layers are \"fill\" and \"stroke\") and the geometry knobs shape.. On an SVG vector clip the svg.* overrides: vector.svg., vector.svg.., or the same under vector.svg.. On a 3D model clip model3d._> (n 1..4); a model is placed by its transform like any 3D layer (positionX, positionY, scaleX, scaleY, z, rotationX, rotationY, rotation, perspective), and the older model3d. are still accepted as shorthands that write those; model3d.modelScale and modelScaleZ resize the model about the clip's anchor (modelScaleZ only its depth). On a procedural clip proc. for any numeric, switch, enum or colour-channel param of its package (proc.tint.r, proc.origin.x for vec2). On a PDF clip pdf.scrollX and pdf.scrollY (page units: 1 moves one page, or one grid row/column) and pdf.zoom (0.1..10). positionX/Y is the clip anchor on the canvas (px), scaleX/Y a factor on the clip's frame (1 = fit size). Spellings live in this schema \u2014 list_animated_properties returns only properties that already have keys (empty on a fresh clip), so do not use it to learn names.", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "prop", "at" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "set_keyframe_interpolation", "toolbox": "keyframes", "description": "When: Set linear/hold/ease/smooth on a key. Set the easing preset on the key nearest `at`; the playhead does not move. Mode smooth writes Catmull-Rom auto tangents from the neighbouring keys onto that key (velocity continuous through it; for a whole property use set_keyframe_easing smooth+all, or set_keyframes). For custom beziers, elastic or bounce curves, or saved presets, use set_keyframe_easing.", "schema": { "properties": { "at": { "description": "Timeline seconds of the key", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "mode": { "description": "Interpolation", "enum": [ "linear", "hold", "ease", "smooth" ], "type": "string" }, "prop": { "description": "Animated property: positionX, positionY, scaleX, scaleY, rotation, rotationX, rotationY, z, anchorX, anchorY, anchorZ, perspective, opacity, volume, fx.., afx.. (e.g. fx.0.amount), mask., or on a text/subtitle clip text. with key one of pixelSize, letterSpacing, lineHeight, boxPadding, pathBend, or a shading layer field text.layer...pos|effect.> (the legacy names outlineWidth, shadowBlur, glowRadius, gradientAngle, color.r\u2026 still map onto the stroke/shadow/glow/fill layers; colour channels 0..1). On a shape clip the same layer fields are shape.layer.. (a fresh shape's layers are \"fill\" and \"stroke\") and the geometry knobs shape.. On an SVG vector clip the svg.* overrides: vector.svg., vector.svg.., or the same under vector.svg.. On a 3D model clip model3d._> (n 1..4); a model is placed by its transform like any 3D layer (positionX, positionY, scaleX, scaleY, z, rotationX, rotationY, rotation, perspective), and the older model3d. are still accepted as shorthands that write those; model3d.modelScale and modelScaleZ resize the model about the clip's anchor (modelScaleZ only its depth). On a procedural clip proc. for any numeric, switch, enum or colour-channel param of its package (proc.tint.r, proc.origin.x for vec2). On a PDF clip pdf.scrollX and pdf.scrollY (page units: 1 moves one page, or one grid row/column) and pdf.zoom (0.1..10). positionX/Y is the clip anchor on the canvas (px), scaleX/Y a factor on the clip's frame (1 = fit size). Spellings live in this schema \u2014 list_animated_properties returns only properties that already have keys (empty on a fresh clip), so do not use it to learn names.", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "prop", "at", "mode" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_easing_presets", "toolbox": "keyframes", "description": "When: See the easing presets. List built-in and saved easing presets for keyframe segments.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "set_keyframe_easing", "toolbox": "keyframes", "description": "When: Ease a segment with a preset or custom curve. Shape the segment that leaves the key at `at` (on the last key, the segment that arrives there). Give exactly one of `preset` (an id from list_easing_presets; linear and hold are presets too), `bezier` [x1, y1, x2, y2] with x in 0..1, or `fn` (elastic or bounce, with optional amplitude and period). Or `smooth:true` instead of those: Catmull-Rom auto tangents from the neighbouring keys (slope = chord between neighbours, handles a third of each segment), so velocity is continuous across keys; it shapes the key at `at`, and with `all:true` every key of the property. `all:true` applies the curve to every segment of the property and `at` is then not needed. Does NOT move the playhead.", "schema": { "properties": { "all": { "description": "Apply to every segment of the property; at is ignored", "type": "boolean" }, "amplitude": { "description": "Elastic amplitude (defaults to 1)", "type": "number" }, "at": { "description": "Timeline seconds of the key whose outgoing segment is shaped", "type": "number" }, "bezier": { "description": "Four numbers x1, y1, x2, y2; x in 0..1, y may overshoot", "items": { "type": "number" }, "type": "array" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "fn": { "description": "Penner curve", "enum": [ "elasticIn", "elasticOut", "elasticInOut", "bounceIn", "bounceOut", "bounceInOut" ], "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "period": { "description": "Elastic period, above 0 (defaults to 0.3)", "type": "number" }, "preset": { "description": "Easing preset id from list_easing_presets, e.g. cubicOut", "type": "string" }, "prop": { "description": "Animated property: positionX, positionY, scaleX, scaleY, rotation, rotationX, rotationY, z, anchorX, anchorY, anchorZ, perspective, opacity, volume, fx.., afx.. (e.g. fx.0.amount), mask., or on a text/subtitle clip text. with key one of pixelSize, letterSpacing, lineHeight, boxPadding, pathBend, or a shading layer field text.layer...pos|effect.> (the legacy names outlineWidth, shadowBlur, glowRadius, gradientAngle, color.r\u2026 still map onto the stroke/shadow/glow/fill layers; colour channels 0..1). On a shape clip the same layer fields are shape.layer.. (a fresh shape's layers are \"fill\" and \"stroke\") and the geometry knobs shape.. On an SVG vector clip the svg.* overrides: vector.svg., vector.svg.., or the same under vector.svg.. On a 3D model clip model3d._> (n 1..4); a model is placed by its transform like any 3D layer (positionX, positionY, scaleX, scaleY, z, rotationX, rotationY, rotation, perspective), and the older model3d. are still accepted as shorthands that write those; model3d.modelScale and modelScaleZ resize the model about the clip's anchor (modelScaleZ only its depth). On a procedural clip proc. for any numeric, switch, enum or colour-channel param of its package (proc.tint.r, proc.origin.x for vec2). On a PDF clip pdf.scrollX and pdf.scrollY (page units: 1 moves one page, or one grid row/column) and pdf.zoom (0.1..10). positionX/Y is the clip anchor on the canvas (px), scaleX/Y a factor on the clip's frame (1 = fit size). Spellings live in this schema \u2014 list_animated_properties returns only properties that already have keys (empty on a fresh clip), so do not use it to learn names.", "type": "string" }, "smooth": { "description": "Auto Catmull-Rom tangents instead of preset/bezier/fn (use with all:true for the whole property)", "type": "boolean" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "prop" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_keyframe_tangents", "toolbox": "keyframes", "description": "When: Shape bezier handles. Set tangent handles on the key at `at`, relative to it. Omitted handle fields are sent as 0, not left alone \u2014 pass all four to avoid flattening the ones you skip. Writes only this property: the editor's X/Y link (which copies x's handles onto y) is OFF over MCP unless you pass linked:true.", "schema": { "properties": { "at": { "description": "Timeline seconds", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "corner": { "description": "Break tangent collinearity", "type": "boolean" }, "inDx": { "description": "Incoming handle dx in seconds (defaults to 0)", "type": "number" }, "inDy": { "description": "Incoming handle dy in property units (defaults to 0)", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "linked": { "description": "positionX/positionY only: also copy the shape onto the other axis, scaled by segment delta, like the editor's link toggle (default false)", "type": "boolean" }, "outDx": { "description": "Outgoing handle dx in seconds (defaults to 0)", "type": "number" }, "outDy": { "description": "Outgoing handle dy in property units (defaults to 0)", "type": "number" }, "prop": { "description": "Animated property: positionX, positionY, scaleX, scaleY, rotation, rotationX, rotationY, z, anchorX, anchorY, anchorZ, perspective, opacity, volume, fx.., afx.. (e.g. fx.0.amount), mask., or on a text/subtitle clip text. with key one of pixelSize, letterSpacing, lineHeight, boxPadding, pathBend, or a shading layer field text.layer...pos|effect.> (the legacy names outlineWidth, shadowBlur, glowRadius, gradientAngle, color.r\u2026 still map onto the stroke/shadow/glow/fill layers; colour channels 0..1). On a shape clip the same layer fields are shape.layer.. (a fresh shape's layers are \"fill\" and \"stroke\") and the geometry knobs shape.. On an SVG vector clip the svg.* overrides: vector.svg., vector.svg.., or the same under vector.svg.. On a 3D model clip model3d._> (n 1..4); a model is placed by its transform like any 3D layer (positionX, positionY, scaleX, scaleY, z, rotationX, rotationY, rotation, perspective), and the older model3d. are still accepted as shorthands that write those; model3d.modelScale and modelScaleZ resize the model about the clip's anchor (modelScaleZ only its depth). On a procedural clip proc. for any numeric, switch, enum or colour-channel param of its package (proc.tint.r, proc.origin.x for vec2). On a PDF clip pdf.scrollX and pdf.scrollY (page units: 1 moves one page, or one grid row/column) and pdf.zoom (0.1..10). positionX/Y is the clip anchor on the canvas (px), scaleX/Y a factor on the clip's frame (1 = fit size). Spellings live in this schema \u2014 list_animated_properties returns only properties that already have keys (empty on a fresh clip), so do not use it to learn names.", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "prop", "at" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_keyframe_hold", "toolbox": "keyframes", "description": "When: Step-hold a key. When hold is true the property steps: it keeps this key's value until the next key instead of interpolating.", "schema": { "properties": { "at": { "description": "Timeline seconds", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "hold": { "description": "Hold until next key", "type": "boolean" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "prop": { "description": "Animated property: positionX, positionY, scaleX, scaleY, rotation, rotationX, rotationY, z, anchorX, anchorY, anchorZ, perspective, opacity, volume, fx.., afx.. (e.g. fx.0.amount), mask., or on a text/subtitle clip text. with key one of pixelSize, letterSpacing, lineHeight, boxPadding, pathBend, or a shading layer field text.layer...pos|effect.> (the legacy names outlineWidth, shadowBlur, glowRadius, gradientAngle, color.r\u2026 still map onto the stroke/shadow/glow/fill layers; colour channels 0..1). On a shape clip the same layer fields are shape.layer.. (a fresh shape's layers are \"fill\" and \"stroke\") and the geometry knobs shape.. On an SVG vector clip the svg.* overrides: vector.svg., vector.svg.., or the same under vector.svg.. On a 3D model clip model3d._> (n 1..4); a model is placed by its transform like any 3D layer (positionX, positionY, scaleX, scaleY, z, rotationX, rotationY, rotation, perspective), and the older model3d. are still accepted as shorthands that write those; model3d.modelScale and modelScaleZ resize the model about the clip's anchor (modelScaleZ only its depth). On a procedural clip proc. for any numeric, switch, enum or colour-channel param of its package (proc.tint.r, proc.origin.x for vec2). On a PDF clip pdf.scrollX and pdf.scrollY (page units: 1 moves one page, or one grid row/column) and pdf.zoom (0.1..10). positionX/Y is the clip anchor on the canvas (px), scaleX/Y a factor on the clip's frame (1 = fit size). Spellings live in this schema \u2014 list_animated_properties returns only properties that already have keys (empty on a fresh clip), so do not use it to learn names.", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "prop", "at", "hold" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_property_keyframes_enabled", "toolbox": "keyframes", "description": "When: Mute animation without deleting keys. When false the keys are kept but the property holds its first key's value. Use this before set_transform when you want a constant value on an already-animated property.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "enabled": { "description": "Keyframes drive the property", "type": "boolean" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "prop": { "description": "Animated property: positionX, positionY, scaleX, scaleY, rotation, rotationX, rotationY, z, anchorX, anchorY, anchorZ, perspective, opacity, volume, fx.., afx.. (e.g. fx.0.amount), mask., or on a text/subtitle clip text. with key one of pixelSize, letterSpacing, lineHeight, boxPadding, pathBend, or a shading layer field text.layer...pos|effect.> (the legacy names outlineWidth, shadowBlur, glowRadius, gradientAngle, color.r\u2026 still map onto the stroke/shadow/glow/fill layers; colour channels 0..1). On a shape clip the same layer fields are shape.layer.. (a fresh shape's layers are \"fill\" and \"stroke\") and the geometry knobs shape.. On an SVG vector clip the svg.* overrides: vector.svg., vector.svg.., or the same under vector.svg.. On a 3D model clip model3d._> (n 1..4); a model is placed by its transform like any 3D layer (positionX, positionY, scaleX, scaleY, z, rotationX, rotationY, rotation, perspective), and the older model3d. are still accepted as shorthands that write those; model3d.modelScale and modelScaleZ resize the model about the clip's anchor (modelScaleZ only its depth). On a procedural clip proc. for any numeric, switch, enum or colour-channel param of its package (proc.tint.r, proc.origin.x for vec2). On a PDF clip pdf.scrollX and pdf.scrollY (page units: 1 moves one page, or one grid row/column) and pdf.zoom (0.1..10). positionX/Y is the clip anchor on the canvas (px), scaleX/Y a factor on the clip's frame (1 = fit size). Spellings live in this schema \u2014 list_animated_properties returns only properties that already have keys (empty on a fresh clip), so do not use it to learn names.", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "prop", "enabled" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "move_keyframe", "toolbox": "keyframes", "description": "When: Move a key. Move a keyframe from one time to another, optionally changing its value. `from` must match an existing key \u2014 confirm with list_keyframes. When value is omitted the property's current value at `from` is carried over.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "from": { "description": "Existing key's timeline seconds", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "prop": { "description": "Animated property: positionX, positionY, scaleX, scaleY, rotation, rotationX, rotationY, z, anchorX, anchorY, anchorZ, perspective, opacity, volume, fx.., afx.. (e.g. fx.0.amount), mask., or on a text/subtitle clip text. with key one of pixelSize, letterSpacing, lineHeight, boxPadding, pathBend, or a shading layer field text.layer...pos|effect.> (the legacy names outlineWidth, shadowBlur, glowRadius, gradientAngle, color.r\u2026 still map onto the stroke/shadow/glow/fill layers; colour channels 0..1). On a shape clip the same layer fields are shape.layer.. (a fresh shape's layers are \"fill\" and \"stroke\") and the geometry knobs shape.. On an SVG vector clip the svg.* overrides: vector.svg., vector.svg.., or the same under vector.svg.. On a 3D model clip model3d._> (n 1..4); a model is placed by its transform like any 3D layer (positionX, positionY, scaleX, scaleY, z, rotationX, rotationY, rotation, perspective), and the older model3d. are still accepted as shorthands that write those; model3d.modelScale and modelScaleZ resize the model about the clip's anchor (modelScaleZ only its depth). On a procedural clip proc. for any numeric, switch, enum or colour-channel param of its package (proc.tint.r, proc.origin.x for vec2). On a PDF clip pdf.scrollX and pdf.scrollY (page units: 1 moves one page, or one grid row/column) and pdf.zoom (0.1..10). positionX/Y is the clip anchor on the canvas (px), scaleX/Y a factor on the clip's frame (1 = fit size). Spellings live in this schema \u2014 list_animated_properties returns only properties that already have keys (empty on a fresh clip), so do not use it to learn names.", "type": "string" }, "to": { "description": "New timeline seconds", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "value": { "description": "Optional new value; omitted keeps the value at `from`", "type": "number" } }, "required": [ "prop", "from", "to" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_speed_curve", "toolbox": "speed", "description": "When: Read a clip's speed ramp. Returns {hasCurve, points:[{pos,speed,\u2026}], retimedDuration}. Despite being a read, this opens and closes a transient curve session and will CLOSE any speed-curve session already open. Video, audio and composite clips carry curves. Fails bad_args on clips that cannot (no continuous source: text, shape, still image).", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_speed_curve", "toolbox": "speed", "description": "When: Apply a custom speed ramp. Replace the clip with a retimed copy carrying the curve. Needs at least two points. Returns {id, track, index, retimedDuration} with a NEW id \u2014 the old clip UUID is dead. An ops array cannot reference an id produced earlier in the same batch, so END THE BATCH after this op and use the returned id in the next apply. Works on video, audio and composite clips (composite ramps are MCP-only; the Custom speed window does not open on them). Fails bad_args on clips that cannot carry a curve.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "points": { "description": "Speed curve control points, at least two, ordered by pos", "items": { "properties": { "corner": { "description": "Break tangent collinearity", "type": "boolean" }, "inDx": { "description": "Incoming tangent dx (curve space)", "type": "number" }, "inDy": { "description": "Incoming tangent dy", "type": "number" }, "outDx": { "description": "Outgoing tangent dx", "type": "number" }, "outDy": { "description": "Outgoing tangent dy", "type": "number" }, "pos": { "description": "Normalised position 0..1 over trimmed source", "type": "number" }, "speed": { "description": "Playback rate at this point", "type": "number" } }, "type": "object" }, "type": "array" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "points" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "clear_speed_curve", "toolbox": "speed", "description": "When: Remove a speed ramp. Clear the curve and restore the scalar-speed timeline duration.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "list_fade_curve", "toolbox": "speed", "description": "When: Read custom fade shape. Returns {points:[{t,g}]} for the clip's custom fade curve; `edge` (in|out, default in) picks the fade. Despite being a read, this opens and closes a transient session and will CLOSE any fade-curve session already open. Fails bad_args on clips that cannot carry a custom fade. Write with set_fade_curve (canvas).", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "edge": { "description": "Which fade to read (default in)", "enum": [ "in", "out" ], "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "get_ui_preferences", "toolbox": "ui", "description": "When: Read editor UI settings. Returns {theme:{overridden, dark}, autoKey, mediaGrid, reopenLastProject, proxySuggestion, useProxies, proxySize, proxyLocation, proxyFolder, agentNotifications}. autoKey matters for set_transform: when true, transform writes become keyframes at the playhead (or its `at`), which must be inside the clip.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "set_theme", "toolbox": "ui", "description": "When: Set dark or light theme. Set an explicit dark-mode preference. This overrides the OS theme; clear it with set_ui_preferences({followSystem:true}). Not undoable.", "schema": { "properties": { "dark": { "description": "true = dark, false = light", "type": "boolean" } }, "required": [ "dark" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_themes", "toolbox": "ui", "description": "When: List installed UI themes. Returns {themes:[{id, name, variant, builtIn, hasVariants, hasOverrides}], selection, current, schemaVersion (theme format this build writes), themesFolder, warning?}. selection is system, dark, light, graphite, frost or a user theme id; current is the theme on screen. To make a theme: export_theme a copy, edit the JSON file yourself, then import_theme it. There is no tool that edits theme tokens directly.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "export_theme", "toolbox": "ui", "description": "When: Write a theme JSON to edit outside Drift. Write theme `theme` (default: the one on screen) to `path` renamed to `name`. mode copy (default) writes every resolved token (palette, semantic, components, metrics, typography, motion, window), about 3800 lines \u2014 edit any value and drop the rest unchanged. mode starter writes {name, schemaVersion, extends: theme, variant, palette, metrics, typography, motion, window}, palette trimmed to ~40 core surface/text/accent/status keys \u2014 the small option when restyling; add more palette, semantic or components keys to override them, missing keys fall through to the base. window: translucent (bool, needs the user's translucent-windows setting and a restart), backdrop (none, blur; mica or acrylic on Windows), backgroundOpacity (0..1); surfaces that should show it need alpha appBackground, panelBackground and accent. Values: colors #RGB/#RRGGBB/#AARRGGBB (alpha first), numbers, or references like \"$palette.primary\". A dual-variant theme exports the side on screen. Then call import_theme. To fix a theme you already imported, export it with theme and name both set to its id (mode copy), or re-edit your file, and import_theme with replace:true. Returns {path, name, from, mode}.", "schema": { "properties": { "mode": { "description": "copy = all tokens, starter = extends + core palette, metrics, typography, motion, window", "enum": [ "copy", "starter" ], "type": "string" }, "name": { "description": "Name of the new theme; becomes its id on import. Not a built-in id (dark, light, graphite, frost) or system", "type": "string" }, "path": { "description": "Absolute .json output path", "type": "string" }, "theme": { "description": "Theme id from list_themes to start from (default: current)", "type": "string" } }, "required": [ "path", "name" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "import_theme", "toolbox": "ui", "description": "When: Install a theme file. Validate and install a theme .json, a theme folder (theme.json, optional theme.dark.json / theme.light.json) or a .zip into the user themes folder. The theme's name is its id. Fails exists when that name is installed unless replace:true; replace also re-applies it if it is on screen. select:true switches to it. On bad JSON or wrong value types the error says where; fix the file and import again. Returns {id, selected?, warning?}. Not undoable.", "schema": { "properties": { "path": { "description": "Absolute path to the .json, folder or .zip", "type": "string" }, "replace": { "description": "Overwrite an installed theme with the same name", "type": "boolean" }, "select": { "description": "Switch to the theme after installing", "type": "boolean" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "select_theme", "toolbox": "ui", "description": "When: Switch the UI theme. Put a theme on screen and remember it. theme is system (follow light/dark preference), dark, light, graphite, frost, or a user theme id from list_themes. Returns {selection, current, warning?}. Not undoable.", "schema": { "properties": { "theme": { "description": "system, dark, light, graphite, frost or a theme id", "type": "string" } }, "required": [ "theme" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_shortcuts", "toolbox": "ui", "description": "When: List action bindings. Returns {actions:[{id, label, shortcut}], n} for every editor action.", "schema": { "properties": { "q": { "description": "Case-insensitive substring over id/label/shortcut", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "set_shortcut", "toolbox": "ui", "description": "When: Rebind a shortcut. Bind keys to an action id from list_shortcuts. An empty keys string clears the binding. On a clash the call FAILS with error \"conflict\" and the conflicting action's label in detail; nothing is rebound. Not undoable.", "schema": { "properties": { "action": { "description": "Action id from list_shortcuts", "type": "string" }, "keys": { "description": "Qt key sequence, e.g. Ctrl+S; empty string clears", "type": "string" } }, "required": [ "action", "keys" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "reset_shortcuts", "toolbox": "ui", "description": "When: Restore default shortcuts. Reset every action binding to its default. Not undoable.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "set_ui_preferences", "toolbox": "ui", "description": "When: Change UI preferences. Set editor preferences; only supplied keys change. Note followSystem only acts when TRUE (it clears the dark-mode override); passing false does nothing \u2014 use set_theme to pin a theme. autoKey matters for set_transform: when on, transform writes become keyframes at the playhead. proxySuggestion sets what import_media does with slow-to-preview footage; only the user can choose always (Settings \u203a Preview), since it transcodes every later import. useProxies makes preview read proxies where they exist (create them with create_proxies); export always reads the original media. proxySize is the short side of new proxies; proxies made at another size aren't used until made again. proxyLocation sets where new proxies and reversed renders are saved: beside (next to the original, default; Drift's cache when that folder refuses a write), cache (Drift's cache, pruned past its size limit) or folder (proxyFolder, an existing writable folder; Drift's cache while it's missing). Changing the folder moves or deletes nothing, but proxies in the previous folder are no longer found (choose it again to find them). Returns the resulting flags plus theme {overridden, dark}.", "schema": { "properties": { "agentNotifications": { "description": "Which notifications your own calls raise on the user's screen while they run: all or problems (warnings and errors; default). none is user-only. Results that finish later (an export, a probe) still show. Global, kept across sessions", "enum": [ "all", "problems" ], "type": "string" }, "autoKey": { "description": "Auto-keyframe: transform edits create keyframes at the playhead", "type": "boolean" }, "followSystem": { "description": "true clears the theme override so the OS theme wins; false is a no-op", "type": "boolean" }, "mediaGrid": { "description": "Media bin grid mode", "type": "boolean" }, "proxyFolder": { "description": "Absolute path of an existing writable folder for proxyLocation folder. Global, kept across sessions", "type": "string" }, "proxyLocation": { "description": "Where new proxies and reversed clips are saved. Global, kept across sessions", "enum": [ "beside", "cache", "folder" ], "type": "string" }, "proxySize": { "description": "Short side of new proxies: 360, 540, 720 or 1080. Global, kept across sessions", "type": "integer" }, "proxySuggestion": { "description": "What imports do with footage that would preview slowly: ask (a notification offers proxies; default) or never. always is user-only. Global, kept across sessions", "enum": [ "ask", "never" ], "type": "string" }, "reopenLastProject": { "description": "Reopen last project on launch", "type": "boolean" }, "useProxies": { "description": "Preview reads proxies where they exist (Settings \u203a Preview \u203a Use proxies). Global, kept across sessions", "type": "boolean" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_preview_view", "toolbox": "ui", "description": "When: Move the 3D viewport's free viewpoint. Drive the preview panel's view; only supplied keys act, in this order: mode, reset, axis, ortho, fov, orientation, frame_selection, frame_all, orbit, pan, dolly, look_through. mode 3d shows the 3D viewport (the world from a free viewpoint with the scene camera and stage drawn in it) by opening a workspace that has one; 2d changes nothing, the Edit preview is always the camera's picture. reset returns to the overview. axis snaps to a standard view of the current target (leaves look_through). frame_selection frames the selected clip, or the whole stage when none. frame_all frames every clip at the playhead, the stage and the camera. ortho toggles the orthographic projection, fov is the editor lens in degrees (10-120), orientation is the gizmo's axes (world|local|view). orbit [dx,dy] is degrees, pan [dx,dy] canvas px, dolly wheel steps (+ toward the target). look_through true views through the scene camera (what exports), false returns to the free viewpoint. Navigation changes the viewpoint even while the 3D viewport is closed but is only seen in it. Editor state: not part of the project, not undoable. Returns {mode, look_through, target:[x,y,z], yaw, pitch, distance, fov, ortho, orientation, eye:[x,y,z]} in the 3D world (canvas px from the top-left, y down, +z away from the viewer). See it with capture({view:\"editor3d\"}).", "schema": { "properties": { "axis": { "description": "Standard view of the current target", "enum": [ "front", "back", "left", "right", "top", "bottom" ], "type": "string" }, "dolly": { "description": "Wheel steps; + moves toward the target", "type": "number" }, "fov": { "description": "Editor lens, vertical degrees (10-120, default 32)", "type": "number" }, "frame_all": { "description": "Frame every clip at the playhead, the stage and the camera", "type": "boolean" }, "frame_selection": { "description": "Frame the selected clip, or the whole stage", "type": "boolean" }, "look_through": { "description": "true = through the scene camera, false = free viewpoint", "type": "boolean" }, "mode": { "description": "3d shows the 3D viewport; 2d is accepted and does nothing", "enum": [ "2d", "3d" ], "type": "string" }, "orbit": { "description": "[dx, dy] degrees of yaw and pitch", "items": { "description": "Degrees", "type": "number" }, "type": "array" }, "orientation": { "description": "Gizmo axes", "enum": [ "world", "local", "view" ], "type": "string" }, "ortho": { "description": "Orthographic projection for the free viewpoint", "type": "boolean" }, "pan": { "description": "[dx, dy] canvas px the scene follows", "items": { "description": "Canvas px", "type": "number" }, "type": "array" }, "reset": { "description": "Return to the overview viewpoint", "type": "boolean" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_shapes", "toolbox": "shapes", "description": "When: Find a shape id before add_shape. Returns {shapes:[{id, label, cat, kind, aspect}], n} \u2014 cat is basic|arrows|bubbles|fun, aspect the default box width/height. Use id with add_shape or as set_shape_style style.kind.", "schema": { "properties": { "q": { "description": "Case-insensitive substring over id/label/cat", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "list_stickers", "toolbox": "shapes", "description": "When: Find a sticker id before add_sticker. Returns {stickers:[{id, label, cat}], n}. Use id with add_sticker.", "schema": { "properties": { "q": { "description": "Case-insensitive substring over id/label/cat", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "list_emoji", "toolbox": "shapes", "description": "When: Search emoji by name or group before add_emoji. Returns {emoji:[{id, label, cat}], n, groups:[\u2026]} \u2014 id IS the emoji character, which is what add_emoji takes. q or group is required (the full catalog is ~1900 rows); q also matches hidden keywords.", "schema": { "properties": { "group": { "description": "Exact group name from the groups list", "type": "string" }, "limit": { "default": 50, "description": "Max rows", "maximum": 2000, "minimum": 1, "type": "integer" }, "q": { "description": "Case-insensitive substring over name, group and keywords", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "add_shape", "toolbox": "shapes", "description": "When: Place a shape. Add a builtin shape clip (5 s, centred), creating a shape track when needed. Returns {id, track, index}; an unknown id fails not_found. Style it afterwards with set_shape_style (layers fill + stroke, geometry knobs) and animate with set_keyframe shape..", "schema": { "properties": { "at": { "description": "Start seconds (default: playhead)", "type": "number" }, "shape": { "description": "Shape id from list_shapes", "type": "string" }, "track": { "description": "Optional destination track; omitted picks or creates one", "type": "integer" } }, "required": [ "shape" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "add_sticker", "toolbox": "shapes", "description": "When: Place a sticker. Add a sticker clip, creating a track when needed. Returns {id, track, index}.", "schema": { "properties": { "at": { "description": "Start seconds (default: playhead)", "type": "number" }, "sticker": { "description": "Sticker id from list_stickers", "type": "string" } }, "required": [ "sticker" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "add_emoji", "toolbox": "shapes", "description": "When: Put an emoji character on the timeline. Add an emoji clip. Takes the emoji CHARACTER (e.g. \"\ud83c\udfac\"), not a catalog id. Graphics share one track type, so with the target span already occupied this stacks onto its own lane rather than sliding down the timeline; pass track to choose one. Returns {id, track, index}.", "schema": { "properties": { "at": { "description": "Start seconds (default: playhead)", "type": "number" }, "emoji": { "description": "The emoji character itself, e.g. \ud83c\udfac", "type": "string" }, "name": { "description": "Optional display name for the clip", "type": "string" }, "track": { "description": "Graphic track to place on (default: the first free one)", "type": "integer" } }, "required": [ "emoji" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "add_lottie", "toolbox": "motion", "description": "When: Place a Lottie animation. Add a Lottie (Bodymovin JSON) clip on a graphic track, creating one when needed. The document is the JSON text itself (inline, up to 8 MB) or an absolute .json path. Plays once at its own length unless duration is given; loop decides what happens past the end. Returns {id, track, index} plus the inspect summary: durationSec, width, height, fps, slots:[{id,type}], namedProperties, expressions, unsupported, hints. Read unsupported and expressions \u2014 Skottie evaluates no expressions, so an animation that relies on them renders static. A slot override that fails is reported in slotErrors and does not fail the add.", "schema": { "properties": { "at": { "description": "Start seconds (default: playhead)", "type": "number" }, "duration": { "description": "Clip length in seconds (default: the animation's own length)", "type": "number" }, "fit": { "description": "How the animation fills the clip box (default contain)", "enum": [ "contain", "cover", "stretch" ], "type": "string" }, "json": { "description": "Lottie JSON text, or an absolute path to a .json file", "type": "string" }, "loop": { "description": "Past the animation's end: hold the last frame, loop, ping-pong, or hide (default hold)", "enum": [ "hold", "loop", "pingpong", "hide" ], "type": "string" }, "name": { "description": "Clip name (default: the document's title)", "type": "string" }, "offset": { "description": "Seconds into the animation at the clip's start (default 0)", "type": "number" }, "slots": { "description": "Slot overrides {id: value}, typed as in set_lottie_slot", "type": "object" }, "track": { "description": "Optional destination graphic track; omitted picks or creates one", "type": "integer" } }, "required": [ "json" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "add_svg", "toolbox": "motion", "description": "When: Place an SVG as a vector still. Add an SVG clip on a graphic track, drawn as vectors at any size (unlike an image import, which rasterises once). The document is the SVG text itself or an absolute .svg path. SMIL animation and scripts are ignored and reported in unsupported. Returns {id, track, index, width, height, elements:[{id, tag, classes, inDefs, fill, stroke, strokeWidth, opacity}], unsupported, hints}. Restyle it through slots: svg.fill, svg.stroke, svg.strokeWidth, svg.opacity for the whole drawing (drawing-wide colours replace paints the file already has, so fill=\"none\" outlines stay hollow and no stroke is added), or svg.. for one element from `elements`. Colour and scalar overrides are keyframable as vector.svg.<\u2026> (colour channels .r/.g/.b/.a in 0..1); visible takes 0/1 and is not.", "schema": { "properties": { "at": { "description": "Start seconds (default: playhead)", "type": "number" }, "duration": { "description": "Clip length in seconds (default 5)", "type": "number" }, "fit": { "description": "How the drawing fills the clip box (default contain)", "enum": [ "contain", "cover", "stretch" ], "type": "string" }, "name": { "description": "Clip name", "type": "string" }, "slots": { "description": "Overrides {key: value}: svg.fill / svg.stroke (colour), svg.strokeWidth / svg.opacity (number), svg..", "type": "object" }, "svg": { "description": "SVG text, or an absolute path to a .svg file", "type": "string" }, "track": { "description": "Optional destination graphic track", "type": "integer" } }, "required": [ "svg" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "inspect_lottie", "toolbox": "motion", "description": "When: Check a Lottie/SVG before or after placing it. Parse a document and report what it declares and what this renderer will skip, without touching the timeline: version, fps, durationSec, width, height, layers, slots, namedProperties, fonts, markers, expressions (property paths that carry an expression \u2014 these render as their static value), unsupported, hints; for an SVG also elements:[{id, tag, classes, inDefs, fill, stroke, strokeWidth, opacity}], the ids set_lottie_slot's svg..* keys address. Give json, svg or path for a document, or clip for one already on the timeline.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "json": { "description": "Lottie JSON text", "type": "string" }, "path": { "description": "Absolute .json or .svg path", "type": "string" }, "svg": { "description": "SVG text", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "set_lottie_source", "toolbox": "motion", "description": "When: Swap the document under a vector clip. Replace the clip's Lottie/SVG document, keeping its position, length, fit and loop. Slot overrides survive only for slots the new document declares with the same type. Returns the inspect summary of the new document.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "json": { "description": "Lottie JSON text", "type": "string" }, "path": { "description": "Absolute .json or .svg path", "type": "string" }, "svg": { "description": "SVG text", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_lottie_options", "toolbox": "motion", "description": "When: Fit, loop, offset or name of a vector clip. Change how a vector clip plays; only supplied keys change.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "fit": { "description": "contain | cover | stretch", "enum": [ "contain", "cover", "stretch" ], "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "loop": { "description": "hold | loop | pingpong | hide", "enum": [ "hold", "loop", "pingpong", "hide" ], "type": "string" }, "name": { "description": "Clip name", "type": "string" }, "offset": { "description": "Seconds into the animation at the clip's start", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_lottie_slot", "toolbox": "motion", "description": "When: Override a Lottie slot (template input). Set one of the animation's declared slots \u2014 see list_lottie_slots or the slots array add_lottie returned. The value must match the slot's type: color takes \"#rrggbb\", \"#aarrggbb\", a colour name or [r,g,b,a] in 0..1; scalar a number; vec2 [x,y]; text a string; image an absolute image path. Pass value:null to remove the override (and any keyframes on it). Fails bad_args on an undeclared slot or a wrong type. Slots are the way to re-theme an animation; documents without slots can only be edited as JSON and re-sent with set_lottie_source. An SVG declares no slots and takes the svg.* override keys instead (see add_svg): svg.fill, svg.stroke, svg.strokeWidth, svg.opacity, or svg...", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "name": { "description": "Slot id", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "value": { "description": "Typed value, or null to clear" } }, "required": [ "name" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_lottie_slots", "toolbox": "motion", "description": "When: Slots a vector clip's document declares. Returns {slots:[{id, type, value?}], n}: every declared slot with the clip's current override where one is set. For an SVG: the four whole-drawing svg.* keys plus whichever element overrides are set.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "get_lottie_source", "toolbox": "motion", "description": "When: Read a vector clip's document. Returns {kind, inline, path, hash, source} \u2014 the full document text, which can be large. Read it to edit a document that has no slots, then send it back with set_lottie_source.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "add_model3d", "toolbox": "model3d", "description": "When: Place a 3D model (.glb) or Gaussian splat. Add a glTF binary, or a Gaussian splat scene (.sog, a 3DGS .ply, a .zip or folder bundle holding meta.json/lod-meta.json, or that meta.json), as a model clip on a graphic track, creating one when needed. A model clip is a 3D layer like any other: its box (positionX/positionY and scaleX/scaleY on its frame) is the front face of the model's bounding box, z pushes it in depth (+ away from the viewer), rotationX/rotationY/rotation turn it about the clip's anchor (intrinsic, X then Y then the in-plane spin, the same as a tilted clip; the world is right-handed, y down, z away), and perspective is the eye it is seen through when there is no scene camera \u2014 set them with set_transform or set_keyframe like any clip. It occludes and is occluded by other 3D layers when \"Occlude by depth\" is on in the editor. It starts centred with its largest extent half the canvas height. scale/depth/rotX/rotY/rotZ are older shorthands still accepted: scale resizes the box about its centre to that fraction of canvas height, depth sets the perspective, rotX/rotY/rotZ set the rotations about the model's glTF axes (+y up, +z toward the viewer; written as rotationX = rotX, rotationY = -rotY, rotation = -rotZ). modelScale (default 1) resizes the model about the anchor and modelScaleZ (default 1) multiplies its depth, which is otherwise the geometric mean of the box's width and height scales. It is lit by ambient plus up to four point or spot lights (lights), placed like 3D Relight's across the clip's rect and near or far of the model's centre; they follow the clip's position and size but not its rotation. Their numbers are keyframable as model3d.ambient, model3d.modelScale, model3d.modelScaleZ and model3d.light_. A light's z is in clip heights, + away from the viewer, like the world's. An animated file plays its first animation at its own length unless duration is given; loop decides what happens past the end. Returns {id, track, index, animations:[{name, durationSec}], vertexCount, warning?, model3d:{\u2026}}. A splat has no animations or lights (those options have no effect) and reports splatCount instead of vertexCount.", "schema": { "properties": { "ambient": { "description": "Ambient light 0..1 (default 0.35)", "maximum": 1, "minimum": 0, "type": "number" }, "animation": { "description": "Index into the file's animations (default 0)", "type": "integer" }, "at": { "description": "Start seconds (default: playhead)", "type": "number" }, "depth": { "description": "Shorthand: perspective strength 0 (flat) .. 1 (strong); writes perspective", "maximum": 1, "minimum": 0, "type": "number" }, "duration": { "description": "Clip length in seconds (default: the first animation's length, 5 s for a static model)", "type": "number" }, "lights": { "description": "Up to four lights, by index; give only the fields to change, or null to leave a light alone", "items": { "properties": { "aimX": { "description": "Where a spot points, across the rect 0..1 on the plane through the model's centre", "maximum": 1, "minimum": 0, "type": "number" }, "aimY": { "description": "Where a spot points, down the rect 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "color": { "description": "#rrggbb", "type": "string" }, "cone": { "description": "Spot angle in degrees; 180 is a point light", "maximum": 180, "minimum": 10, "type": "number" }, "enabled": { "description": "Light on", "type": "boolean" }, "intensity": { "description": "Brightness", "maximum": 4, "minimum": 0, "type": "number" }, "radius": { "description": "Reach in clip heights", "maximum": 5, "minimum": 0.05, "type": "number" }, "x": { "description": "Across the clip's rect, 0 left .. 1 right", "maximum": 2, "minimum": -1, "type": "number" }, "y": { "description": "Down the clip's rect, 0 top .. 1 bottom", "maximum": 2, "minimum": -1, "type": "number" }, "z": { "description": "Clip heights from the model's centre; negative is nearer the viewer", "maximum": 3, "minimum": -3, "type": "number" } }, "type": "object" }, "type": "array" }, "loop": { "description": "Past the animation's end: hold the last frame, loop, ping-pong, or hide (default loop)", "enum": [ "hold", "loop", "pingpong", "hide" ], "type": "string" }, "modelScale": { "description": "Uniform size multiplier about the anchor (default 1)", "maximum": 100, "minimum": 0.01, "type": "number" }, "modelScaleZ": { "description": "Extra multiplier on the model's depth only (default 1)", "maximum": 100, "minimum": 0.01, "type": "number" }, "name": { "description": "Clip name (default: the file name)", "type": "string" }, "offset": { "description": "Seconds into the animation at the clip's start (default 0)", "type": "number" }, "path": { "description": "Absolute path to a .glb, .sog, .ply, .zip or meta.json file", "type": "string" }, "rotX": { "description": "Shorthand: degrees about the model's X axis; writes rotationX = rotX", "type": "number" }, "rotY": { "description": "Shorthand: degrees about the model's up axis; writes rotationY = -rotY", "type": "number" }, "rotZ": { "description": "Shorthand: degrees about the model's Z axis; writes rotation = -rotZ", "type": "number" }, "scale": { "description": "Shorthand: largest extent as a fraction of canvas height (default 0.5); writes scaleX/scaleY", "maximum": 10, "minimum": 0.01, "type": "number" }, "track": { "description": "Optional destination graphic track; omitted picks or creates one", "type": "integer" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "inspect_model3d", "toolbox": "model3d", "description": "When: Check a .glb or splat before or after placing it. Parse a model and report what it carries without touching the timeline: animations:[{name, durationSec}], vertexCount, primitiveCount, materialCount, textureCount, warning (what the loader had to skip \u2014 Draco compression, extra material textures, \u2026). Give path for a file, or clip for one already on the timeline (adds its model3d options).", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "path": { "description": "Absolute .glb, .sog, .ply, .zip or meta.json path", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "set_model3d_source", "toolbox": "model3d", "description": "When: Swap the file under a model clip. Replace the clip's .glb or splat, keeping its transform, length, lighting and keyframes; the animation index is clamped to the new file. Returns the inspect summary of the new file.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "path": { "description": "Absolute .glb, .sog, .ply, .zip or meta.json path", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_model3d_options", "toolbox": "model3d", "description": "When: Animation, loop or lighting of a model clip. Change how a model clip plays and looks; only supplied keys change. Light values set here are plain (non-keyed) values \u2014 use set_keyframe with model3d. to animate them. The model's placement is its clip transform (set_transform, rotationX/rotationY/z/perspective keyframes); scale/depth/rotX/rotY/rotZ are accepted as the shorthands add_model3d describes.", "schema": { "properties": { "ambient": { "description": "Ambient light 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "animation": { "description": "Index into the file's animations", "type": "integer" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "depth": { "description": "Shorthand: perspective strength 0..1; writes perspective", "maximum": 1, "minimum": 0, "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "lights": { "description": "Up to four lights, by index; give only the fields to change, or null to leave a light alone", "items": { "properties": { "aimX": { "description": "Where a spot points, across the rect 0..1 on the plane through the model's centre", "maximum": 1, "minimum": 0, "type": "number" }, "aimY": { "description": "Where a spot points, down the rect 0..1", "maximum": 1, "minimum": 0, "type": "number" }, "color": { "description": "#rrggbb", "type": "string" }, "cone": { "description": "Spot angle in degrees; 180 is a point light", "maximum": 180, "minimum": 10, "type": "number" }, "enabled": { "description": "Light on", "type": "boolean" }, "intensity": { "description": "Brightness", "maximum": 4, "minimum": 0, "type": "number" }, "radius": { "description": "Reach in clip heights", "maximum": 5, "minimum": 0.05, "type": "number" }, "x": { "description": "Across the clip's rect, 0 left .. 1 right", "maximum": 2, "minimum": -1, "type": "number" }, "y": { "description": "Down the clip's rect, 0 top .. 1 bottom", "maximum": 2, "minimum": -1, "type": "number" }, "z": { "description": "Clip heights from the model's centre; negative is nearer the viewer", "maximum": 3, "minimum": -3, "type": "number" } }, "type": "object" }, "type": "array" }, "loop": { "description": "hold | loop | pingpong | hide", "enum": [ "hold", "loop", "pingpong", "hide" ], "type": "string" }, "modelScale": { "description": "Uniform size multiplier about the anchor", "maximum": 100, "minimum": 0.01, "type": "number" }, "modelScaleZ": { "description": "Extra multiplier on the model's depth only", "maximum": 100, "minimum": 0.01, "type": "number" }, "name": { "description": "Clip name", "type": "string" }, "offset": { "description": "Seconds into the animation at the clip's start", "type": "number" }, "rotX": { "description": "Shorthand: writes rotationX = rotX", "type": "number" }, "rotY": { "description": "Shorthand: writes rotationY = -rotY", "type": "number" }, "rotZ": { "description": "Shorthand: writes rotation = -rotZ", "type": "number" }, "scale": { "description": "Shorthand: largest extent as a fraction of canvas height; writes scaleX/scaleY", "maximum": 10, "minimum": 0.01, "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "add_subtitle_clip", "toolbox": "subtitles", "description": "When: Empty subtitle lane. Add an empty subtitle clip, creating a subtitle track when needed. Returns {id, track, index}. Fill it with set_subtitle_cues or import_subtitle_into_clip.", "schema": { "properties": { "at": { "description": "Start seconds (default: playhead)", "type": "number" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "import_subtitle_file", "toolbox": "subtitles", "description": "When: Bring an .srt/.vtt file in as a new subtitle clip. Import an .srt or .vtt file as a NEW subtitle clip. Returns {id, track, index}. Use import_subtitle_into_clip to fill an existing clip instead.", "schema": { "properties": { "at": { "description": "Start seconds (default: playhead)", "type": "number" }, "path": { "description": "Absolute .srt or .vtt path", "type": "string" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "import_subtitle_into_clip", "toolbox": "subtitles", "description": "When: Load into clip. Import a subtitle file into an existing subtitle clip, replacing its cues.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "path": { "description": "Absolute .srt or .vtt path", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "export_subtitle_file", "toolbox": "subtitles", "description": "When: Save a subtitle clip's cues as .srt/.vtt. Write a subtitle clip's cues to a file. The format follows the path's extension (.srt/.vtt). Cue times are clip-local unless timeline_times is true.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "path": { "description": "Absolute output path; extension picks the format", "type": "string" }, "timeline_times": { "description": "Offset cues by the clip's start so they match the exported video", "type": "boolean" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "path" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_subtitle_cues", "toolbox": "subtitles", "description": "When: Replace all cues. REPLACE every cue on a subtitle clip. This is not a merge \u2014 cues you leave out are deleted, so read the current list from inspect({clips:true,cues:true}) or inspect({clips:true,detail:true}).subtitleCues first when editing. Times are timeline seconds.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "cues": { "description": "Full cue list; replaces the existing one", "items": { "properties": { "end": { "description": "End seconds", "type": "number" }, "start": { "description": "Start seconds", "type": "number" }, "text": { "description": "Caption", "type": "string" } }, "type": "object" }, "type": "array" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "cues" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "upsert_subtitle_cue", "toolbox": "subtitles", "description": "When: Edit cue at playhead. Set the text of the cue under the playhead, creating one if there is none. Uses the playhead, not a time argument \u2014 seek first.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "text": { "description": "Caption text, must be non-empty", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "text" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_whisper_languages", "toolbox": "subtitles", "description": "When: Pick a language id before generate_subtitles. Returns {languages:[{id, label}]}. Pass an id as generate_subtitles.language.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "generate_subtitles", "toolbox": "subtitles", "description": "When: Auto transcribe, including word-by-word captions. Transcribe audio with Whisper into a new subtitle clip. Sources: clips (several UUIDs), else track+start+end (every video/audio clip on that track in the range), else one clip ref. Several sources produce ONE subtitle clip spanning them; they must not overlap in time (bad_args). Async: returns {started:true} immediately \u2014 poll inspect({detail:true}).jobs.subtitleGen.{active,progress,status} until active is false. Cancel with cancel_subtitle_generation. For word-by-word captions pass max_words_per_cue:1. Run this AFTER remove_silence \u2014 silence removal shifts the timeline and would invalidate cue times.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "clips": { "description": "Video/audio clips to caption together", "items": { "description": "Clip UUID", "type": "string" }, "type": "array" }, "end": { "description": "Range end seconds (with track and start)", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "language": { "description": "Language id from list_whisper_languages; omitted auto-detects", "type": "string" }, "max_words_per_cue": { "description": "Cap words per caption; omit or 0 for the recommended length. Short caps drift slightly out of sync.", "type": "number" }, "start": { "description": "Range start seconds (with track and end)", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "cancel_subtitle_generation", "toolbox": "subtitles", "description": "When: Abort a running generate_subtitles. Cancel in-flight subtitle generation. Returns ok even when nothing was running; confirm with inspect({detail:true}).jobs.subtitleGen.active.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "segmentation_status", "toolbox": "segmentation", "description": "When: Check the cutout models are installed before segmenting. Returns {available, model, backends}. Check available is true before any other segmentation op \u2014 the models ship separately and the session ops do not report their absence. backends lists what is installed: sam2 takes hint points and can cut out anything; rvm takes no points at all and cuts out people only, with a soft edge.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "begin_segmentation_session", "toolbox": "segmentation", "description": "When: Open segment UI state. Open an interactive segmentation session on one frame of a clip. REQUIRED before set_segmentation_frame, add/remove/clear_segmentation_point, and run_segmentation \u2014 those ops do not check, and return ok while doing nothing when no session is open. Close with end_segmentation_session. Prefer segment_clip for a single one-shot cutout.", "schema": { "properties": { "at": { "description": "Frame seconds (default: playhead)", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "forTemplate": { "description": "Template mode: produce a reusable mask instead of editing this clip", "type": "boolean" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "end_segmentation_session", "toolbox": "segmentation", "description": "When: Abandon a segmentation session without applying it. End the segmentation session, discarding its points without applying them. Always call this when abandoning a session \u2014 a stale session interferes with later segmentation ops.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_segmentation_frame", "toolbox": "segmentation", "description": "When: Move an open segmentation session to another frame. Move the segmentation preview to another frame. Requires an open session from begin_segmentation_session; returns ok with no effect otherwise.", "schema": { "properties": { "at": { "description": "Seconds", "type": "number" } }, "required": [ "at" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "add_segmentation_point", "toolbox": "segmentation", "description": "When: Add SAM point. Add an include or exclude hint point. Requires an open session; returns ok with no effect otherwise. Coordinates are normalised 0..1 across the frame, not pixels.", "schema": { "properties": { "include": { "default": true, "description": "true keeps this region, false excludes it", "type": "boolean" }, "x": { "description": "X, 0..1 across the frame", "type": "number" }, "y": { "description": "Y, 0..1 down the frame", "type": "number" } }, "required": [ "x", "y" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "remove_segmentation_point", "toolbox": "segmentation", "description": "When: Remove SAM point. Remove a hint point by the order it was added. Requires an open session; returns ok with no effect otherwise.", "schema": { "properties": { "index": { "description": "0-based position in the order points were added", "type": "integer" } }, "required": [ "index" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "clear_segmentation_points", "toolbox": "segmentation", "description": "When: Drop every hint point but keep the session open. Remove all hint points but keep the session open. Requires an open session.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "run_segmentation", "toolbox": "segmentation", "description": "When: Run from session. Run segmentation using the session's current points. Requires an open session. Async and with no progress field \u2014 re-read inspect({clips:true,detail:true}) and compare to detect completion. Cancel with cancel_segmentation.", "schema": { "properties": { "backend": { "default": "sam2", "description": "sam2 needs hint points and cuts out anything; rvm ignores points and cuts out people automatically", "enum": [ "sam2", "rvm" ], "type": "string" }, "output": { "default": "adjustment", "description": "adjustment adds the cutout as a mask layer on the clip's own lane, leaving the clip itself untouched. clips and mask are older spellings of the same thing, kept working.", "enum": [ "adjustment", "clips", "mask" ], "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "segment_clip", "toolbox": "segmentation", "description": "When: Cut a subject out of a clip in one call. Segment a clip with explicit points in a single call \u2014 no session needed. Prefer this over the session ops for scripted use. Async and with no progress field: re-read inspect({clips:true,detail:true}) and compare to detect completion. points are required for the sam2 backend and ignored by rvm, which finds people on its own. Works on video and image clips; an image gets a single matte that covers its whole duration.", "schema": { "properties": { "backend": { "default": "sam2", "description": "sam2 needs hint points and cuts out anything; rvm ignores points and cuts out people automatically", "enum": [ "sam2", "rvm" ], "type": "string" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "output": { "default": "adjustment", "description": "adjustment adds the cutout as a mask layer on the clip's own lane, leaving the clip itself untouched. clips and mask are older spellings of the same thing, kept working.", "enum": [ "adjustment", "clips", "mask" ], "type": "string" }, "points": { "description": "Hint points, at least one", "items": { "properties": { "include": { "description": "true keeps this region, false excludes it (default true)", "type": "boolean" }, "x": { "description": "X, 0..1 across the frame", "type": "number" }, "y": { "description": "Y, 0..1 down the frame", "type": "number" } }, "type": "object" }, "type": "array" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "cancel_segmentation", "toolbox": "segmentation", "description": "When: Stop segment job. Cancel an in-flight segmentation. Returns ok even when nothing was running.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "denoise_status", "toolbox": "ai", "description": "When: Check the denoise model is installed before apply_denoise. Returns {available}. Check this before apply_denoise \u2014 the model ships separately.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "apply_denoise", "toolbox": "ai", "description": "When: Remove hiss/hum/background noise from a clip's audio. Run AI audio denoise over the clip \u2014 this removes background noise (hiss, HVAC, rumble), not reverb. \"Sounds like a bathroom\" is reverb and this will not fix it. Async and with no progress field \u2014 re-read inspect({clips:true,detail:true}) and compare to detect completion. Cancel with cancel_denoise.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "cancel_denoise", "toolbox": "ai", "description": "When: Abort a running apply_denoise. Cancel an in-flight denoise. Returns ok even when nothing was running.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "ai_capabilities", "toolbox": "ai", "description": "When: What models are installed. Which optional model add-ons are present and what each unlocks, plus the active ONNX Runtime. Call this before an op that needs a model, or after one fails, so you can tell the user exactly what to install instead of retrying. Returns {models:[{kind, installed, unlocks}], runtime, hint}. Missing models install with install_addon after list_addons; set_acceleration picks the ONNX Runtime.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "face_detection_status", "toolbox": "ai", "description": "When: Face track availability. Returns {available}. Check this before detect_faces \u2014 the model ships separately.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "detect_faces", "toolbox": "ai", "description": "When: Track faces so auto_reframe can follow them. Run face detection over a clip and store a face-track sidecar (per-frame anchors: eyes, nose, mouth, chin, forehead). Read it with list_face_track; auto_reframe consumes it to write transform keyframes that keep a face in frame. inspect({clips:true,detail:true}) reports hasFaceTrack. Async and with no progress field \u2014 re-read inspect and compare. Cancel with cancel_face_detection.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "cancel_face_detection", "toolbox": "ai", "description": "When: Cancel face detect. Cancel an in-flight face detection. Returns ok even when nothing was running.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "clear_face_track", "toolbox": "ai", "description": "When: Remove face track. Delete the stored face track from a clip, undoing detect_faces.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "estimate_depth", "toolbox": "ai", "description": "When: Estimate depth for the depth effects. Estimate a video or image clip's depth with the depth-model addon (Video Depth Anything), which the depth effects read: depth.relight (3D lights), depth.focus (depth of field), depth.fog, depth.view, and depth.occlude (put a layer above it behind whatever is nearer). Without it those effects pass the frame through. Pass the media clip or the effects adjustment pinned to it. Slow: roughly 0.5 s per frame on CPU at quality \"draft\", about twice that at \"high\"; re-estimating the same pixels returns the cached result at once. Async: returns {job_id}; poll get_job, whose result is {path, frames, cached}, then inspect({clips:true,detail:true}) reports hasDepth. Cancel with cancel_job.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "quality": { "default": "draft", "description": "draft (short side 392) or high (518)", "enum": [ "draft", "high" ], "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "clear_depth", "toolbox": "ai", "description": "When: Remove estimated depth. Detach the estimated depth from a clip, undoing estimate_depth. Its depth effects then pass the frame through.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "sample_depth", "toolbox": "ai", "description": "When: Read depth at a point. Normalised depth (0 = farthest thing in the clip, 1 = nearest) at a point of the clip's frame, x/y in 0..1 from the top-left, at a timeline time (default: the playhead). Use it to set depth.focus focusDepth or depth.occlude depth from what is at a spot. Returns {depth}; errors when the clip has no depth (run estimate_depth).", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "time": { "description": "Timeline seconds (default: playhead)", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "x": { "description": "0..1 across the clip's frame", "maximum": 1, "minimum": 0, "type": "number" }, "y": { "description": "0..1 down the clip's frame", "maximum": 1, "minimum": 0, "type": "number" } }, "required": [ "x", "y" ], "type": "object" }, "readOnly": true, "destructive": false }, { "name": "list_addons", "toolbox": "ai", "description": "When: What add-ons exist. Returns {addons:[{id, name, kind, version, state, installed, categories, tagline, requires}]}. state is available, queued, downloading, installing, installed, update-available, failed or needs-newer-app. requires lists the add-on ids it needs. Use id with install_addon; addon_details has the full store entry.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "install_addon", "toolbox": "ai", "description": "When: Install a model or pack. Queue an add-on from list_addons for download and install, after whatever it requires (an AI model pulls in the AI engine). Downloads run one at a time. Async: poll list_addons for state. Returns the plan {ids, added:[{id, name, reason, forName}], missing, downloadSize}; ids is empty when nothing needed doing. Not undoable.", "schema": { "properties": { "id": { "description": "Add-on id from list_addons", "type": "string" } }, "required": [ "id" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "install_addons", "toolbox": "ai", "description": "When: Install several add-ons. install_addon for a list, planned together so shared requirements download once. Returns the same plan. Not undoable.", "schema": { "properties": { "ids": { "description": "Add-on ids from list_addons", "items": { "type": "string" }, "type": "array" } }, "required": [ "ids" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "addon_details", "toolbox": "ai", "description": "When: Describe an add-on. The store entry for one add-on: name, tagline, summary, useCases, howTo, unlocks, requires (with installed flags), recommends, size, state and categories.", "schema": { "properties": { "id": { "description": "Add-on id from list_addons", "type": "string" } }, "required": [ "id" ], "type": "object" }, "readOnly": true, "destructive": false }, { "name": "cancel_addon_install", "toolbox": "ai", "description": "When: Stop an add-on install. Cancel an in-flight install_addon. Not undoable.", "schema": { "properties": { "id": { "description": "Add-on id", "type": "string" } }, "required": [ "id" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_acceleration", "toolbox": "ai", "description": "When: Pick ONNX Runtime. Set the ONNX Runtime used by AI features. A change may require an app restart. Not undoable.", "schema": { "properties": { "variant": { "description": "Acceleration id (auto, cpu, cuda, \u2026)", "type": "string" } }, "required": [ "variant" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_face_track", "toolbox": "ai", "description": "When: Read face anchors. The per-frame face-track sidecar written by detect_faces. Returns {fps, n, frames:[{t, faces:[{cx, cy, rx, ry, valid}]}]}. t is source seconds. Long tracks are subsampled.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "get_job", "toolbox": "ai", "description": "When: Progress of a background job. State of a job started by transcribe, diarize, tts_generate, sfx_generate, add_voice or voiceover_from_subtitles: {id, kind, target, active, progress, status}; once active is false, ok plus result or error. inspect({detail:true}).jobs.list shows every recent job.", "schema": { "properties": { "id": { "description": "Job id", "type": "string" } }, "required": [ "id" ], "type": "object" }, "readOnly": true, "destructive": false }, { "name": "cancel_job", "toolbox": "ai", "description": "When: Stop a background job. Cancel a running job by id. Returns {cancelled}; false when it had already finished.", "schema": { "properties": { "id": { "description": "Job id", "type": "string" } }, "required": [ "id" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "audio_summary", "toolbox": "audio", "description": "When: What carries sound. List every clip that actually reaches the mix \u2014 audio clips, plus video clips whose embedded audio is not suppressed \u2014 with per-clip volume keyframe count, audio effect count, fades, and the asset's sampleRate/channels/hasAudio. Cheaper and far smaller than inspect({clips:true,detail:true}) when all you need is a range worth analysing. Also returns beats.{analysed, bpm, stale, gridVisible, onsetsVisible}, and soloed:[tracks] when any is soloed.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "get_waveform", "toolbox": "audio", "description": "When: See the amplitude. Amplitude peaks as an array of numbers in 0..1, one per bucket, evenly spaced across the range. Three modes: pass clip (or track+index) for that clip's trimmed source window, asset for a media file, or neither (with start and duration) for the MIXED TIMELINE \u2014 every track summed with volume, fades, mutes and solo applied. WARNING: clip and asset mode read the source file, so clip speed, reverse and volume are NOT applied; only timeline mode is what you would actually hear. Silence reads as a true 0, so this is usable for finding dead air. Blocks while decoding, so the data is there on the first call. image:true returns a PNG instead \u2014 mixed lane, speech-band lane, silence shaded, onset ticks when detect_beats is current, the transcript's words (reply `words` carries their indices for cut_words) when the media is transcribed, optional spectrogram \u2014 plus a summary_buckets numeric summary; clip mode is then timeline-space (through the clip's volume and fades), asset mode draws the mixed lane only. image:true cannot be used inside apply.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "buckets": { "default": 400, "description": "How many peaks to return", "maximum": 4096, "minimum": 1, "type": "integer" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "duration": { "description": "Range length in seconds, max 3600. Required for timeline mode; in asset mode omit it for the whole file.", "type": "number" }, "height": { "default": 300, "description": "image only: PNG height (grows by 120 with a spectrogram)", "maximum": 800, "minimum": 120, "type": "integer" }, "image": { "default": false, "description": "Return a waveform PNG instead of numbers", "type": "boolean" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "spectrogram": { "default": false, "description": "image only: add a 64-bin log spectrogram lane", "type": "boolean" }, "start": { "description": "Range start in seconds. Timeline seconds in timeline mode, source seconds in asset mode. Ignored in clip mode, which always spans the whole trimmed clip.", "type": "number" }, "summary_buckets": { "default": 50, "description": "image only: how many numeric peaks to return beside the image", "maximum": 4096, "minimum": 1, "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "width": { "default": 1400, "description": "image only: PNG width", "maximum": 2000, "minimum": 200, "type": "integer" }, "words": { "default": true, "description": "image: a lane of the transcript's words (with their indices in the reply) when the media is transcribed", "type": "boolean" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "detect_beats", "toolbox": "audio", "description": "When: Find the tempo. Detect beats and onsets over a range of the mixed timeline. BLOCKS until done (a few seconds for a long range) and returns bpm, confidence, beatsPerBar, firstDownbeat, beats (absolute timeline seconds) and onsets [{at, s}] where s is 0..1 strength. duration must be at least 4 seconds and at most 600. WARNING: bpm 0 means no trustworthy tempo was found \u2014 the beats array is then empty, but onsets are still valid and unit:\"onset\" works everywhere a grid is accepted. Re-running the same range returns the cached result with cached:true unless force is set. The result is transient: any edit that changes the mix drops it. Returns error conflict when the editor is already analysing. Long lists are trimmed to 2000 beats / 500 strongest onsets, flagged as truncated. Call set_beat_layers next to make these beats snap targets.", "schema": { "properties": { "duration": { "description": "Range length in seconds", "maximum": 600, "minimum": 4, "type": "number" }, "force": { "description": "Re-analyse even when this exact range is already cached", "type": "boolean" }, "start": { "default": 0, "description": "Range start in timeline seconds", "type": "number" } }, "required": [ "duration" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_beat_layers", "toolbox": "audio", "description": "When: Arm beat snapping. Show or hide the detected beat grid and onset markers. SIDE EFFECT, and the reason to call it: only visible layers become snap targets, so with grid:true every later place_clip, move_clip and move_to_track magnets to the nearest beat within 150 ms, and so do the user's own drags. Turn it off to place something at an exact time instead. Onsets are thinned against beats so a dense track still leaves un-snapped positions. Returns the resulting flags plus snapTargets and snapEnabled \u2014 snapping does nothing when snapEnabled is false.", "schema": { "properties": { "grid": { "default": true, "description": "Show the beat grid", "type": "boolean" }, "onsets": { "default": false, "description": "Show onset markers", "type": "boolean" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "bookmark_beats", "toolbox": "audio", "description": "When: Beats as markers. Write the detected grid into the project as bookmarks, which persist with the project, show in the bookmark lane, and are snap targets in their own right \u2014 this is how a grid outlives the transient analysis. Skips any beat within 150 ms of an existing bookmark, since stacked markers make the magnet ambiguous rather than stronger. Requires detect_beats first. Returns {added}.", "schema": { "properties": { "duration": { "description": "Only mark this many seconds; omit for the rest of the analysed range", "type": "number" }, "label": { "default": "Beat", "description": "Label prefix; each mark gets its grid number appended", "type": "string" }, "min_strength": { "default": 0, "description": "For unit:\"onset\" only \u2014 drop onsets weaker than this", "maximum": 1, "minimum": 0, "type": "number" }, "start": { "default": 0, "description": "Only mark from this timeline second on", "type": "number" }, "unit": { "default": "beat", "description": "Grid to use from the last detect_beats. beat = every beat; bar = every beatsPerBar-th beat counted from firstDownbeat; onset = detected transients, which need no tempo and work when bpm is 0.", "enum": [ "beat", "bar", "onset" ], "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "split_on_beats", "toolbox": "audio", "description": "When: Cut to the beat. Split one clip at every grid time strictly inside it \u2014 the beat-cut edit. Requires detect_beats first. Cuts run back to front so the clip id you passed stays valid throughout; it ends up naming the FIRST piece. Returns clips (all resulting ids in timeline order, including the original) and at (the times actually cut). One undo step however many cuts it makes. min_gap drops cuts that would leave a sliver.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "min_gap": { "default": 0.1, "description": "Skip a cut that would leave a piece shorter than this many seconds", "type": "number" }, "min_strength": { "default": 0, "description": "For unit:\"onset\" only \u2014 drop onsets weaker than this", "maximum": 1, "minimum": 0, "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "unit": { "default": "beat", "description": "Grid to use from the last detect_beats. beat = every beat; bar = every beatsPerBar-th beat counted from firstDownbeat; onset = detected transients, which need no tempo and work when bpm is 0.", "enum": [ "beat", "bar", "onset" ], "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "snap_clips_to_beats", "toolbox": "audio", "description": "When: Quantise to the grid. Move clip starts onto the nearest grid time. Requires detect_beats first. Pass clips (a list of UUIDs) or track (every clip on that lane); clips wins when both are given. Clips further than max_distance from any grid time are left alone and reported in skipped. WARNING: the placed time can still differ from the beat \u2014 overlap resolution pushes a clip to the next free gap when overlap is off \u2014 so read the `to` values back rather than assuming. One undo step for the whole pass.", "schema": { "properties": { "clips": { "description": "Clip UUIDs to quantise", "items": { "description": "Clip UUID", "type": "string" }, "type": "array" }, "max_distance": { "default": 0.25, "description": "Leave a clip alone when the nearest grid time is further than this many seconds", "type": "number" }, "min_strength": { "default": 0, "description": "For unit:\"onset\" only \u2014 drop onsets weaker than this", "maximum": 1, "minimum": 0, "type": "number" }, "track": { "description": "Quantise every clip on this track index; ignored when clips is given", "type": "integer" }, "unit": { "default": "beat", "description": "Grid to use from the last detect_beats. beat = every beat; bar = every beatsPerBar-th beat counted from firstDownbeat; onset = detected transients, which need no tempo and work when bpm is 0.", "enum": [ "beat", "bar", "onset" ], "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_volume", "toolbox": "audio", "description": "When: Make a clip louder or quieter, or keyframe a duck. Set a clip's volume. 1 is unity, 0 is silent, 2 is the maximum the mixer allows. Without `at` this sets the clip's constant level; with `at` it writes a keyframe at that TIMELINE second, which is how you ramp or duck. WARNING: once a clip has more than one volume keyframe, a call without `at` retargets the key nearest the playhead rather than flattening the animation \u2014 read the keys back with list_keyframes({prop:\"volume\"}). Track-level volume does not exist; mute a whole lane with set_track, or hear one alone with its solo.", "schema": { "properties": { "at": { "description": "Timeline seconds for a keyframe; omit to set the constant level", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "value": { "description": "Volume (1 = unity, 2 = mixer maximum)", "maximum": 2, "minimum": 0, "type": "number" } }, "required": [ "value" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "clear_beat_analysis", "toolbox": "audio", "description": "When: Drop the beat grid. Clear the transient beat analysis so the next detect_beats is not cached.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "detect_silence", "toolbox": "audio", "description": "When: Find dead air. Find ranges with no speech. method \"energy\" (default) thresholds speech-band amplitude; \"vad\" uses the Silero voice-activity model (addon vad-model), which ignores music, breath and room noise that energy mistakes for speech. BLOCKS. Pass clip for that clip, or start+duration for the mixed timeline. Returns {ranges:[{start,end}], threshold, source, method} in timeline seconds.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "duration": { "description": "Range length seconds (timeline mode)", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "method": { "default": "energy", "description": "Detector", "enum": [ "energy", "vad" ], "type": "string" }, "min_duration": { "default": 0.35, "description": "Ignore silences shorter than this many seconds", "type": "number" }, "padding": { "default": 0.08, "description": "Seconds of room tone to keep on each side of speech", "type": "number" }, "start": { "description": "Timeline start seconds (timeline mode)", "type": "number" }, "threshold": { "description": "energy: speech-band amplitude below which a bucket is silence (default 0.02). vad: speech probability below which audio is silence (default 0.5)", "maximum": 1, "minimum": 0, "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "remove_silence", "toolbox": "audio", "description": "When: Cut dead air in one step. Cut the silences out of a clip (or every clip on a track) and ripple what follows. Linked audio/video are cut together. Each cut edge gets a short audio-only de-click ramp. One undo step. Returns {removed:[{start,end}] (timeline seconds before the edit), clips:[surviving ids]}.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "declick": { "default": 0.03, "description": "Audio ramp in seconds at each cut; 0 turns it off", "maximum": 0.5, "minimum": 0, "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "method": { "default": "energy", "description": "Same as detect_silence", "enum": [ "energy", "vad" ], "type": "string" }, "min_duration": { "default": 0.35, "description": "Same as detect_silence", "type": "number" }, "padding": { "default": 0.08, "description": "Same as detect_silence", "type": "number" }, "threshold": { "description": "Same as detect_silence", "maximum": 1, "minimum": 0, "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "analyze_loudness", "toolbox": "audio", "description": "When: Measure LUFS and true peak. Integrated loudness (EBU R128 / BS.1770) plus a 4\u00d7-interpolated true-peak estimate. Pass clip or start+duration. BLOCKS. Returns {lufs, true_peak_db, duration}.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "duration": { "description": "Range length seconds (timeline mode)", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "start": { "description": "Timeline start seconds (timeline mode)", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "audio_measure", "toolbox": "audio", "description": "When: Full loudness report. Everything a loudness meter shows over a range: integrated LUFS, loudness range (LRA, needs 6 s), 4x-oversampled true peak, sample peak, loudest momentary (0.4 s) and short-term (3 s) readings, clipping runs, and gaps (0.1 s loudness under max(-60, integrated-20) LUFS for at least 0.25 s: {start,end,level_lufs,kind:digital silence|near silence|drop,where?:lead-in|tail|whole file}). curve:true adds the momentary and short-term LUFS curves (thinned to 600 points; dt says the step). Three modes like get_waveform: clip (or track+index) measures that clip through its volume and fades on the timeline, asset a media file in source seconds (omit duration for the whole file), neither (with start and duration) the MIXED TIMELINE as it would export, master clipper off. Range is capped at 3600 s. BLOCKS. A missing lufs/lra/true_peak_db key means it cannot be computed (all gated out, too short, or digital silence \u2014 then silent:true).", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "curve": { "default": false, "description": "Include the momentary and short-term loudness curves", "type": "boolean" }, "duration": { "description": "Range length in seconds, max 3600. Required for timeline mode; in asset mode omit it for the whole file.", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "start": { "description": "Range start in seconds. Timeline seconds in timeline mode, source seconds in asset mode. Ignored in clip mode.", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "audio_events", "toolbox": "audio", "description": "When: Find the hits and swells. Sound events in a range: transient hits (superflux onsets on a 96-band log-mel, refined to the attack on 1 ms envelopes, so at is where the sound actually begins) and swells (whoosh / riser build-ups, timed at their peak). Each event has strength 0..1, level_db (dBFS peak), prominence_db (rise of the K-weighted level over the bed just before \u2014 the number to rank by; a hit after silence is huge), band (full, low < 200 Hz, high > 2 kHz) and length_ms. Use it to find where a sound effect lands, what is loud enough to be an accent, or to place a cut on a hit. Same clip / asset / timeline modes as audio_measure; range capped at 600 s. BLOCKS. Returns {n, swells, truncated, events:[{at,kind:hit|swell,strength,level_db,prominence_db,band,length_ms}]} in chronological order; over limit keeps the most prominent. Dense music always has some onset nearby, so read audio_sync's chance figures before trusting a match.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "duration": { "description": "Range length in seconds, max 600. Required for timeline mode; in asset mode omit it for the whole file.", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "limit": { "default": 200, "description": "Most events to return, strongest kept", "maximum": 500, "minimum": 1, "type": "integer" }, "min_prominence_db": { "default": 0, "description": "Skip events less than this many dB over their bed (6 = deliberate accents)", "type": "number" }, "start": { "description": "Range start in seconds. Timeline seconds in timeline mode, source seconds in asset mode. Ignored in clip mode.", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "audio_sync", "toolbox": "audio", "description": "When: Check sound lands on the cuts. For each cut, the audio event that answers it. Cuts are the video-track clip boundaries inside the range, or pass at:[\u2026] for explicit times (required in asset mode, which has no timeline). status: ok = an onset within tolerance_ms; near = within 100 ms; swell = a build-up peaking within 300 ms; peak = no onset, only a soft level peak within 150 ms (check it); off = only a strong onset within 250 ms; no_sound = nothing. offset_ms = sound minus picture (negative = sound early). stats carry hit rates next to chance_* \u2014 what random cue times would score at this event density \u2014 and accent_* for strong accents only (>= 6 dB over the bed, top 20%): on a dense mix read those, a plain hit rate means little when chance is high. no_sound lists the cuts with no hit. Same clip / asset / timeline modes as audio_measure; range capped at 600 s; at beyond 400 cues is trimmed (truncated:true). BLOCKS. Fix a miss by moving the sound clip by offset_ms.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "at": { "description": "Cue times to check instead of the timeline's cuts (timeline seconds, or source seconds in asset mode)", "items": { "description": "Seconds", "type": "number" }, "type": "array" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "duration": { "description": "Range length in seconds, max 600. Required for timeline mode; in asset mode omit it for the whole file.", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "start": { "description": "Range start in seconds. Timeline seconds in timeline mode, source seconds in asset mode. Ignored in clip mode.", "type": "number" }, "tolerance_ms": { "default": 40, "description": "How close an onset must be to count as ok (a frame is 33 at 30 fps)", "maximum": 250, "minimum": 5, "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "audio_tag", "toolbox": "audio", "description": "When: Name the sounds and sections. What a range sounds like, from the audio.clap addon (and audio.ast for speech and music). sections: the range cut where the sound changes (3 s windows merged while neighbours stay alike, split at strong timbre or level changes), each with a label (genre, instruments, mood, 'also:' sources from AST, ambience, voice), the top two vocabulary tags per category (music_genre, music_mood, instruments, ambience, voice) with z, and speech / music / silence probabilities. events: the most important hits and swells of audio_events (limit of them; those at a cut first), each with sound (WHOOSH, RISER, HIT, KEY, UI, STEP, FOLEY, NOTE, DRUM, VOICE), label, the top 3 sound tags with z, exposed (>= 12 dB over its bed, so the tag is more reliable) and sounds_like (calibrated vocabulary terms with verdict strong|plausible|weak). Tags on music mixes are guesses; trust exposed hits and z >= 2.5 sections. Same clip / asset / timeline modes as audio_measure; range capped at 600 s. BLOCKS (about a second per tagged event and per 2 s of section; a minute of audio takes tens of seconds on CPU). Missing addons return addon_missing.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "at": { "description": "Cut or cue times: events within 100 ms of one are always tagged (timeline seconds, or source seconds in asset mode)", "items": { "description": "Seconds", "type": "number" }, "type": "array" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "duration": { "description": "Range length in seconds, max 600. Required for timeline mode; in asset mode omit it for the whole file.", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "limit": { "default": 20, "description": "Most events to tag, most important first", "maximum": 96, "minimum": 1, "type": "integer" }, "sections": { "default": true, "description": "Also split the range into labelled sections", "type": "boolean" }, "start": { "description": "Range start in seconds. Timeline seconds in timeline mode, source seconds in asset mode. Ignored in clip mode.", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "audio_find", "toolbox": "audio", "description": "When: Find a sound by name. Where in a range a described sound happens. term is one of the 322 vocabulary terms (sound, music and ambience descriptions such as \"heavy rain\", \"a fast whoosh\", \"applause\", \"crisp hi-hats\"), or words that all appear in one (\"whoosh\" picks the shortest such term); the reply's term is the one used. There is no free-text search: anything else returns error unknown_term with the closest vocabulary terms in closest. Sliding windows plus excerpts around the strongest hits are scored with the calibrated CLAP match. Returns moments:[{start,end,z,cosine,verdict,source:window|event}] best first, non-overlapping, in the scope's seconds (timeline seconds, or source seconds in asset mode). z >= 3 strong (right 98% of the time on a held-out set), 2.5 plausible, 2 weak, below 2 nothing in this range sounds like the term. Same clip / asset / timeline modes as audio_measure; range capped at 600 s. BLOCKS (up to ~90 model runs). Needs the audio.clap addon (addon_missing otherwise).", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "duration": { "description": "Range length in seconds, max 600. Required for timeline mode; in asset mode omit it for the whole file.", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "start": { "description": "Range start in seconds. Timeline seconds in timeline mode, source seconds in asset mode. Ignored in clip mode.", "type": "number" }, "term": { "description": "A vocabulary term, e.g. \"heavy rain\", \"a door slam\", \"upbeat pop music\"", "type": "string" }, "top": { "default": 5, "description": "Most moments to return", "maximum": 20, "minimum": 1, "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "term" ], "type": "object" }, "readOnly": true, "destructive": false }, { "name": "audio_rank", "toolbox": "audio", "description": "When: Rank media by a sound. Rank media-bin audio and video assets by how well their sound matches one vocabulary term (same terms as audio_find; unknown_term lists the closest). Each file is embedded from up to six 10 s windows spread over it. Returns results:[{asset,name,z,cosine,verdict,near_silent,sounds_most_like}] best first; near-silent files (peak under -60 dBFS) rank last with verdict no match. z >= 3 strong, 2.5 plausible, 2 weak. Pick a sound effect or a clip from the bin by what it sounds like. Files without an audio track are listed in skipped_no_audio. At most 100 assets per call. BLOCKS (roughly a second per asset). Needs the audio.clap addon.", "schema": { "properties": { "assets": { "description": "Assets to rank; omit for every audio and video asset in the bin", "items": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "type": "array" }, "term": { "description": "A vocabulary term, e.g. \"a deep cinematic whoosh\", \"applause\"", "type": "string" }, "top": { "default": 5, "description": "Most results to return", "maximum": 100, "minimum": 1, "type": "integer" } }, "required": [ "term" ], "type": "object" }, "readOnly": true, "destructive": false }, { "name": "audio_presence", "toolbox": "audio", "description": "When: Where speech and music are. Speech, music and silence along a range, from the audio.ast addon (AudioSet classifier, 5.12 s windows every 2.56 s). Returns segments:[{start,end,kind}] with kind speech | music | speech+music | silence | other (sound that is neither), plus speech_seconds, music_seconds and silence_seconds. Music under speech reads as speech+music. A window counts as speech or music from probability 0.3. Use it to find where dialogue is before ducking music, or where nothing is said. Same clip / asset / timeline modes as audio_measure; range capped at 600 s. BLOCKS. Needs the audio.ast addon.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "duration": { "description": "Range length in seconds, max 600. Required for timeline mode; in asset mode omit it for the whole file.", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "start": { "description": "Range start in seconds. Timeline seconds in timeline mode, source seconds in asset mode. Ignored in clip mode.", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "audio_sheet", "toolbox": "audio", "description": "When: See the soundtrack. One annotated image of the sound over a range, on a shared time axis: a frame after each cut, labelled hits and swells, a 30 Hz-16 kHz spectrogram (silence is black), the waveform, momentary and short-term loudness with the integrated level and gaps shaded yellow, beat ticks, and a marker per cut coloured by sync (green onset within tolerance, amber within 100 ms, blue swell, violet level peak only, red no hit) with dashed cut lines through every lane. Use it to judge a whole mix at a glance \u2014 where the sound dies, what clips, whether hits land on the cuts. Same clip / asset / timeline modes as audio_measure; range capped at 600 s (zoom with start+duration). BLOCKS. Returns a summary, the measure numbers, events, cuts, sync stats and items (as audio_measure / audio_sync) and an inline JPEG (long edge <= 1600 px); return:\"path\" writes the full-width PNG to this session's agent-image cache folder (deleted when Drift quits, or swept after a day if it crashed; import_media copies it into the project) and returns its path instead. Asset mode draws frames only for video files and only at the at times. With the audio.clap / audio.ast addons installed the sheet also gets a sections lane, sound names on the hits and a speech / music lane (tags:false skips that and its model time; the reply then carries sections, tagged_events and presence, or tags_missing naming the addons to install). image result cannot run inside apply unless return is path.", "schema": { "properties": { "asset": { "description": "Asset id, bin index (number or numeric string), or exact asset name (case-insensitive). A numeric value is tried as a bin index first, so prefer the id from list_assets.", "type": [ "string", "integer" ] }, "at": { "description": "Cue times to mark and sync-check instead of the timeline's cuts (timeline seconds, or source seconds in asset mode)", "items": { "description": "Seconds", "type": "number" }, "type": "array" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "duration": { "description": "Range length in seconds, max 600. Required for timeline mode; in asset mode omit it for the whole file.", "type": "number" }, "frames": { "default": true, "description": "Draw a frame after each cut", "type": "boolean" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "return": { "default": "image", "description": "image is an inline JPEG; path writes the full-size PNG to disk", "enum": [ "image", "path" ], "type": "string" }, "start": { "description": "Range start in seconds. Timeline seconds in timeline mode, source seconds in asset mode. Ignored in clip mode.", "type": "number" }, "tags": { "default": true, "description": "Add sections, sound names and speech / music when audio.clap / audio.ast are installed", "type": "boolean" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "width": { "default": 2000, "description": "Sheet width in px", "maximum": 2400, "minimum": 1000, "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "normalize_volume", "toolbox": "audio", "description": "When: Match a LUFS target. Measure the clip, then set its scalar volume so integrated loudness matches target_lufs. Clamped to 0..2.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "target_lufs": { "default": -16, "description": "Target integrated LUFS", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "duck_under", "toolbox": "audio", "description": "When: Lower music under speech. Write volume keyframes on this (music) clip that dip whenever speech is present on over_track or over_clips (all other tracks are ignored). Speech is found with the Silero voice model when installed (method auto/vad), otherwise by loudness (energy). amount is the volume multiplier during speech, or give reduce_db. Pauses shorter than hold + attack + release stay ducked. Re-running replaces the previous pass. One undo step. Returns {keys, speech, rest, ducked, method}.", "schema": { "properties": { "amount": { "default": 0.3, "description": "Multiplier during speech", "maximum": 1, "minimum": 0, "type": "number" }, "attack": { "default": 0.12, "description": "Seconds to ramp down before speech", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "hold": { "default": 0.5, "description": "Pauses shorter than this stay ducked, seconds", "maximum": 10, "minimum": 0, "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "method": { "default": "auto", "description": "auto, energy (loudness) or vad (voice model)", "type": "string" }, "over_clips": { "description": "Speech clips; wins over over_track", "items": { "description": "Clip UUID", "type": "string" }, "type": "array" }, "over_track": { "description": "Track whose non-silent ranges drive the duck", "type": "integer" }, "reduce_db": { "description": "Reduction in dB (<= 0); overrides amount", "maximum": 0, "minimum": -60, "type": "number" }, "release": { "default": 0.25, "description": "Seconds to ramp back after speech", "type": "number" }, "sensitivity": { "default": 0.5, "description": "0 = only loud speech, 1 = quiet speech too", "maximum": 1, "minimum": 0, "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "detect_scenes", "toolbox": "scene", "description": "When: Find the shots in a clip. Scan a video clip for shot boundaries and rank each shot by how much is happening. ASYNC: returns {started:true} immediately \u2014 poll inspect({detail:true}).jobs.sceneDetect {active, progress, status} until active is false, then read the result with list_scenes or describe_clip. Returns {cached:true} instead when this clip and these settings were already scanned, in which case the result is ready at once.\nUnlike detect_beats, the analysis does NOT go stale on edits: it describes the source file, is cached against that file's timestamp, and survives edits, undo and reload. Re-trimming the clip does change the scanned range, so that scans afresh.\nwith_objects needs the object-model addon; without it the op fails with a message naming what to install.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "min_scene": { "default": 0.5, "description": "Shortest shot to emit, in seconds", "type": "number" }, "threshold": { "default": 27, "description": "Sensitivity on a mean-HSV-delta scale. Lower finds more cuts. The engine still falls back to an adaptive threshold when this one finds implausibly little on flat or graded footage", "maximum": 100, "minimum": 4, "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "with_objects": { "default": false, "description": "Also label each shot with the objects in it. Slower; needs the object-model addon", "type": "boolean" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_scenes", "toolbox": "scene", "description": "When: Read shots; sort:score for a highlight reel. The shots found by detect_scenes, as {scenes:[{index, start, end, duration, timeline_start, timeline_end, motion, loudness, objects, score, labels}]}. start/end are seconds into the SOURCE file; timeline_start/timeline_end are the same moments on the timeline, already mapped through the clip's trim, speed and reverse \u2014 use those to seek or cut. score is 0..1 and combines motion, loudness and objects. thumb/timeline_thumb is each shot's representative frame.\nPass clip (or track+index) for any clip that has been scanned; without one it reads the last scanned clip. Fails not_found for a clip that was never scanned.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "label": { "description": "Keep only shots containing this object class (needs with_objects)", "type": "string" }, "limit": { "default": 200, "description": "Return at most this many shots", "type": "integer" }, "min_score": { "default": 0, "description": "Drop shots scoring below this", "maximum": 1, "minimum": 0, "type": "number" }, "sort": { "default": "time", "description": "time = in order; score = most active first", "enum": [ "time", "score" ], "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "describe_clip", "toolbox": "scene", "description": "When: What is this footage. One-call summary of the analysed clip, for forming an impression without walking every shot. Returns {clip, duration, scenes (count), cuts, shortest, longest, mean_score, objects_scanned, labels:[{name, scenes, seconds}] and top:[the highest-scoring shots]}. labels is empty unless detect_scenes ran with_objects.\nPass clip (or track+index) for any clip that has been scanned; without one it reads the last scanned clip. Fails not_found for a clip that was never scanned.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "top": { "default": 5, "description": "How many of the highest-scoring shots to include", "type": "integer" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "find_scenes", "toolbox": "scene", "description": "When: Search shots across the timeline. Search every clip that has a cached analysis, not just the one last scanned \u2014 the op for gathering material: \"every shot with a person in it, best first\". Returns {scenes:[{clip, index, start, end, timeline_start, timeline_end, score, labels}]} sorted by score descending.\nOnly clips already scanned by detect_scenes are searched; unscanned clips are listed in unscanned:[clip ids] so you know what you are missing.", "schema": { "properties": { "label": { "description": "Keep only shots containing this object class", "type": "string" }, "limit": { "default": 50, "description": "Return at most this many shots", "type": "integer" }, "min_score": { "default": 0, "description": "Drop shots scoring below this", "maximum": 1, "minimum": 0, "type": "number" }, "track": { "description": "Restrict to clips on this track index", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "split_on_scenes", "toolbox": "scene", "description": "When: Cut at every shot boundary. Split one clip at every detected shot boundary strictly inside it. Requires detect_scenes on that clip first. Cuts run back to front so the clip id you passed stays valid throughout; it ends up naming the FIRST piece. Returns clips (all resulting ids in timeline order, including the original) and at (the timeline times actually cut). One undo step however many cuts it makes. min_gap drops cuts that would leave a sliver.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "min_gap": { "default": 0.1, "description": "Skip a cut that would leave a piece shorter than this many seconds", "type": "number" }, "min_score": { "default": 0, "description": "Only cut at boundaries opening a shot that scores at least this", "maximum": 1, "minimum": 0, "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "bookmark_scenes", "toolbox": "scene", "description": "When: Mark the shots. Write the detected shot boundaries into the project as bookmarks, which survive re-analysis and show on the timeline ruler. Requires detect_scenes first. Returns {added, at:[timeline seconds]}. One undo step.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "label": { "description": "Only mark shots containing this object class", "type": "string" }, "min_score": { "default": 0, "description": "Only mark boundaries opening a shot that scores at least this", "maximum": 1, "minimum": 0, "type": "number" }, "prefix": { "default": "Scene", "description": "Bookmark label prefix; the shot number is appended", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "set_scene_threshold", "toolbox": "scene", "description": "When: Tune shot detection. Persist the default scene-detect sensitivity (4\u2013100, lower finds more cuts).", "schema": { "properties": { "threshold": { "description": "Sensitivity; lower finds more cuts", "maximum": 100, "minimum": 4, "type": "number" } }, "required": [ "threshold" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "clear_scenes", "toolbox": "scene", "description": "When: Drop the shot index. Clear the in-memory scene analysis.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": true }, { "name": "cancel_scene_detection", "toolbox": "scene", "description": "When: Stop a scene scan. Cancel an in-flight detect_scenes. Returns ok even when nothing was running.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "setup_multicam", "toolbox": "multicam", "description": "When: Open a multi-camera session. With two or more video clips selected, start punching those as angles. Otherwise place every video asset onto its own track and start a session. Returns {active, angles}.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "switch_angle", "toolbox": "multicam", "description": "When: Cut to another camera. Punch `angle` (0-based) at the playhead. Session-only until save_multicam_*; not undoable.", "schema": { "properties": { "angle": { "description": "0-based angle index", "type": "integer" } }, "required": [ "angle" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "end_multicam", "toolbox": "multicam", "description": "When: Abandon the session. Close the multicam session without writing cuts into the project. Not undoable.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "save_multicam_separate", "toolbox": "multicam", "description": "When: Keep each camera on its track. Write the session as separate tracks and end it.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "save_multicam_combined", "toolbox": "multicam", "description": "When: Bake a single program track. Write the session as one combined program track and end it.", "schema": { "properties": {}, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "market_status", "toolbox": "market", "description": "When: See what the marketplace offers before searching it. Whether this build has a marketplace and what it serves: {configured, offline, revision, features, sources:[{id, kind, label, mediaKind, searchable, canResolve, categories (with children), providers?, sorts?}]}. Sources are stock. (video, photo, audio, music, greenscreen), drift-assets, sfx and community. (effect, transition, audio-effect, look, theme, effect-template). source: returns that one source in full. layout:true adds pages:[{id, title, sections:[{id, type, title, source}]}] so a section can be searched by its \"page/section\" name. refresh:true re-reads the server's manifest first (waits up to 15 s).", "schema": { "properties": { "layout": { "description": "Include the pages and sections", "type": "boolean" }, "refresh": { "description": "Re-fetch the manifest from the server first", "type": "boolean" }, "source": { "description": "Source id for the full detail of one source", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "market_search", "toolbox": "market", "description": "When: Find stock media, Drift assets, sounds or community add-ons. List one source, or run a section's own binding with section:\"page/section\" (its sort, category and page size become defaults). Returns {source, items:[{id, title, kind, dur?, w?, h?, by?, tags, category?, thumb, preview?, variants:n, installed}], next_cursor?, has_more, quota?, warnings?}. Omit q for the featured listing. category, sort and period use the values market_status lists for the source; provider \"*\" asks every provider; filters is a map of filter id to value. more:true fetches the next page of the previous search of that source (earlier ids stay valid); cursor restarts from a returned next_cursor. type is an alias for source:\"stock.\". Blocks until the service answers. A resolve-only source needs market_resolve. Errors rate_limited, app_too_old and quota_exceeded come back as {ok:false, error, detail}.", "schema": { "properties": { "category": { "description": "Category id from market_status", "type": "string" }, "cursor": { "description": "next_cursor from an earlier result", "type": "string" }, "filters": { "description": "Filter id -> value, using the filters market_status lists for the source", "type": "object" }, "limit": { "default": 24, "description": "Items per page", "maximum": 50, "minimum": 1, "type": "integer" }, "more": { "description": "Fetch the next page of the previous search instead of a new one", "type": "boolean" }, "period": { "description": "Trending window, for sources that have one", "type": "string" }, "provider": { "description": "Provider id; * searches all of them", "type": "string" }, "q": { "description": "Free-text query; empty = featured", "type": "string" }, "section": { "description": "page/section from market_status({layout:true}); runs that section's binding", "type": "string" }, "sort": { "description": "Sort id from market_status", "type": "string" }, "source": { "description": "Source id from market_status", "type": "string" }, "type": { "description": "Alias for source:\"stock.\"", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "market_item", "toolbox": "market", "description": "When: Read one listing in full. One item fetched from the service: description, license, variants:[{id, label, w, h}], thumb, preview, web_url, min_app_version, installed, install_state, extra. Use it to pick a variant for market_install.", "schema": { "properties": { "id": { "description": "Item id from market_search", "type": "string" }, "source": { "description": "Source id", "type": "string" } }, "required": [ "source", "id" ], "type": "object" }, "readOnly": true, "destructive": false }, { "name": "market_resolve", "toolbox": "market", "description": "When: Turn a pasted page URL into a listing. For sources that resolve links (YouTube-style) rather than search. Returns {item} with variants; pass its source and id to market_install. Can take a while: blocks for wait seconds (default 90).", "schema": { "properties": { "url": { "description": "Page URL the user pasted", "type": "string" }, "wait": { "default": 90, "description": "Seconds to wait for the link to resolve", "maximum": 300, "minimum": 1, "type": "integer" } }, "required": [ "url" ], "type": "object" }, "readOnly": true, "destructive": false }, { "name": "market_preview", "toolbox": "market", "description": "When: Look at a listing's thumbnail or preview. Fetches the item's thumbnail (what:thumb) or preview (what:preview), caches it under the app cache and returns a downscaled JPEG as image content with meta {path, w, h, mime}. Video and audio previews return meta {path, mime, dur} only, no image. image:false returns just the meta. Not batchable in apply: call it directly.", "schema": { "properties": { "id": { "description": "Item id", "type": "string" }, "image": { "default": true, "description": "Return the image itself", "type": "boolean" }, "max": { "default": 512, "description": "Longest side in pixels", "maximum": 1024, "minimum": 128, "type": "integer" }, "source": { "description": "Source id", "type": "string" }, "what": { "default": "thumb", "description": "Which image", "enum": [ "thumb", "preview" ], "type": "string" } }, "required": [ "source", "id" ], "type": "object" }, "readOnly": true, "destructive": false }, { "name": "market_install", "toolbox": "market", "description": "When: Install a listing into the project or the app. Install an item: stock media, Drift assets and sounds land in the media bin; community items install as an effect, theme, look or template; face props go to the face-prop library. Stock items SPEND the provider's per-machine quota (see market_search quota). Not undoable. Without wait it returns {job} at once; with wait: (max 600) it blocks and returns {ok, job, result} where result is {asset} | {prop} | {effect} | {theme} | {look} | {template}. A failed or cancelled install comes back {ok:false, error, detail, job}. variant is a variant id from market_item; dir (stock only) is an absolute folder to save into. place:{at, track, new_track} puts the asset on the timeline once installed (needs wait > 0 and a bin asset) and adds {clip, placed, requested, reason?}; the placement is one undo step. An item that is still installing fails conflict.", "schema": { "properties": { "dir": { "description": "Absolute folder to save into (stock sources only; default: Drift's own media area)", "type": "string" }, "id": { "description": "Item id from market_search or market_resolve", "type": "string" }, "place": { "properties": { "at": { "description": "Timeline seconds (default: playhead)", "type": "number" }, "new_track": { "description": "Place on a new track", "type": "boolean" }, "track": { "description": "Track index", "type": "integer" } }, "type": "object" }, "source": { "description": "Source id", "type": "string" }, "variant": { "description": "Variant id from market_item (default: the source's default)", "type": "string" }, "wait": { "default": 0, "description": "Seconds to block for completion; 0 returns immediately", "maximum": 600, "minimum": 0, "type": "integer" } }, "required": [ "source", "id" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "market_downloads", "toolbox": "market", "description": "When: Poll marketplace, add-on and update downloads. Every transfer the app runs: {active, jobs:[{id, kind, title, status, phase, progress, bytes, total, speed, error?, error_code?, retryable, cancellable, result?}]}. kind is stock | community | drift-asset | sfx | addon | update. status runs waiting -> queued/processing -> downloading -> importing/installing -> done, or failed/cancelled. result carries the asset id or path once done. kind filters; clear:true forgets finished jobs.", "schema": { "properties": { "clear": { "description": "Forget finished, failed and cancelled jobs", "type": "boolean" }, "kind": { "description": "Only jobs of this kind", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "market_cancel_download", "toolbox": "market", "description": "When: Stop a running download. Cancel a running job of any kind by its id from market_downloads. Finished jobs fail conflict. Not undoable.", "schema": { "properties": { "id": { "description": "Job id from market_downloads", "type": "string" } }, "required": [ "id" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "market_retry_download", "toolbox": "market", "description": "When: Retry a failed or cancelled download. Restart a failed or cancelled job of any kind by its id from market_downloads. Stock retries spend quota again. Jobs that are not retryable fail conflict.", "schema": { "properties": { "id": { "description": "Job id from market_downloads", "type": "string" } }, "required": [ "id" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "market_open", "toolbox": "market", "description": "When: Show the user a marketplace page. Ask the app window to open the Marketplace on a page (ids from market_status({layout:true})), on the downloads tab (tab:\"downloads\"), or on one item's detail. Returns {opened:true} once requested; a headless instance has no window to show it in.", "schema": { "properties": { "item": { "properties": { "id": { "description": "Item id", "type": "string" }, "source": { "description": "Source id", "type": "string" } }, "required": [ "source", "id" ], "type": "object" }, "page": { "description": "Page id", "type": "string" }, "tab": { "description": "\"downloads\" for the downloads tab", "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "transcribe", "toolbox": "transcript", "description": "When: Word-level transcript of a clip's media. Transcribe the whole source file behind an asset or clip, once: the result is stored on the asset (in source time) and survives every later cut, trim, reorder and undo, so get_transcript, cut_words and generate_subtitles reuse it. engine \"local\" = Whisper + word-timing aligner (align-model addon for the language) + Silero VAD when installed; \"elevenlabs\" = Scribe, which keeps fillers (um, uh), tags audio events and can label speakers (BILLABLE, needs the user's key). Async: returns {jobs:[{asset, job_id}], cached:[asset]}; poll get_job. Already-transcribed media returns cached unless force.", "schema": { "properties": { "align": { "default": true, "description": "local: measure word timings with the aligner when one is installed", "type": "boolean" }, "asset": { "description": "Asset id (alternative to clip)", "type": "string" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "clips": { "description": "Transcribe each clip's media", "items": { "description": "Clip UUID", "type": "string" }, "type": "array" }, "diarize": { "default": false, "description": "Label who speaks each word (local needs diarize-model)", "type": "boolean" }, "engine": { "default": "local", "description": "Transcriber", "enum": [ "local", "elevenlabs" ], "type": "string" }, "force": { "default": false, "description": "Re-transcribe even if a transcript exists", "type": "boolean" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "keyterms": { "description": "elevenlabs: names and jargon to bias recognition toward", "items": { "description": "Term", "type": "string" }, "type": "array" }, "language": { "description": "Language code (en, de, \u2026); omit to auto-detect", "type": "string" }, "num_speakers": { "description": "Known speaker count; helps diarization", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "get_transcript", "toolbox": "transcript", "description": "When: Read what was said, with times. The primary way to read footage. Pass asset (source seconds), clip (timeline seconds, only the part of the media that clip plays) or start+end (timeline, every audible clip). view phrases (default): lines broken on silence >= break_on_silence or speaker change, plus `compact` text \"[start-end] S1 text\" \u2014 the cheapest way to read a whole take. view words: every word with a stable index i (into the asset's transcript) for cut_words. Paginate with offset/limit; next_offset is set when more remain. Fillers and audio events are included unless include narrows it. `stale` = the source file changed since.", "schema": { "properties": { "asset": { "description": "Asset id", "type": "string" }, "break_on_silence": { "default": 0.7, "description": "phrases: start a new line after a gap this long (s)", "type": "number" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "end": { "description": "Timeline end seconds (range mode)", "type": "number" }, "include": { "description": "Only these extra token kinds (default: all)", "items": { "description": "Token kind", "enum": [ "fillers", "events" ], "type": "string" }, "type": "array" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "limit": { "description": "Entries per page (phrases 200, words 400)", "type": "number" }, "max_words": { "description": "phrases: cap words per line", "type": "number" }, "offset": { "description": "First entry to return", "type": "number" }, "start": { "description": "Timeline start seconds (range mode)", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "view": { "default": "phrases", "description": "Shape of the answer", "enum": [ "phrases", "words", "text" ], "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "cut_words", "toolbox": "transcript", "description": "When: Cut words out of a clip. Remove words from a clip by transcript index ([i, j] runs from get_transcript view words, stable across edits) or by text (\"um\", or match phrase for an exact word sequence). Cuts land between words: snap boundary (default) also takes the pause around the removed words, keeping `padding` of air beside the words that stay; snap silence cuts at the quietest point of each gap instead. Linked audio/video are cut together, what follows ripples, each cut gets a de-click ramp. One undo step. dry_run returns the plan without editing. Returns {removed:[{start,end,text}] (timeline, before the edit), removed_words, clips, delta}.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "declick": { "default": 0.03, "description": "Audio ramp at each cut, seconds; 0 = off", "maximum": 0.5, "minimum": 0, "type": "number" }, "dry_run": { "default": false, "description": "Report the cuts without making them", "type": "boolean" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "match": { "default": "word", "description": "text matches single words, or the whole phrase in order", "enum": [ "word", "phrase" ], "type": "string" }, "padding": { "default": 0.05, "description": "Air kept beside remaining words, seconds (0.03\u20130.2)", "maximum": 0.2, "minimum": 0.03, "type": "number" }, "snap": { "default": "boundary", "description": "Where in each gap to cut", "enum": [ "boundary", "silence" ], "type": "string" }, "text": { "description": "A word or phrase (or a list) to remove wherever it is said in this clip" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "words": { "description": "Runs of word indices to remove", "items": { "description": "[i, j] inclusive", "items": { "description": "Word index", "type": "number" }, "type": "array" }, "type": "array" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "keep_ranges", "toolbox": "transcript", "description": "When: Keep only these source ranges of a clip. Rebuild a clip from source-time ranges, in the order given (reordering is fine): an edit decision list for one clip. Ranges are source seconds (get_transcript({asset}) times), padded by `padding`, may reach outside the clip's current trim, and touching ranges play as one. Linked partners follow; later clips ripple; cut edges get a de-click ramp. Refuses speed-ramped clips. One undo step. Returns {clips:[{id, src_start, src_end, start, end}], duration, delta}.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "declick": { "default": 0.03, "description": "Audio ramp at each cut, seconds; 0 = off", "maximum": 0.5, "minimum": 0, "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "padding": { "default": 0, "description": "Seconds added to both ends of each range", "maximum": 1, "minimum": 0, "type": "number" }, "ranges": { "description": "Source ranges to keep, in play order", "items": { "properties": { "end": { "description": "Source seconds", "type": "number" }, "start": { "description": "Source seconds", "type": "number" } }, "required": [ "start", "end" ], "type": "object" }, "type": "array" }, "ripple": { "default": true, "description": "Move later clips to follow the new length", "type": "boolean" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "ranges" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "assemble", "toolbox": "transcript", "description": "When: Build a sequence from an edit decision list. Place takes from several assets back to back: edl [{asset, start, end}] in source seconds, in play order (best take of each beat, any source). Appends to the end of `track` (default: the usual track for the first asset) unless `at` is given; video brings its linked audio. One undo step; nothing is left behind on failure. Returns {clips:[{id, src_start, src_end, start, end}], track, end}.", "schema": { "properties": { "at": { "description": "Timeline seconds to start at (default: after the track's last clip)", "type": "number" }, "declick": { "default": 0.03, "description": "Audio ramp at each cut, seconds", "maximum": 0.5, "minimum": 0, "type": "number" }, "edl": { "description": "Ranges in play order", "items": { "properties": { "asset": { "description": "Asset id", "type": "string" }, "end": { "description": "Source seconds", "type": "number" }, "start": { "description": "Source seconds", "type": "number" } }, "required": [ "asset", "start", "end" ], "type": "object" }, "type": "array" }, "padding": { "default": 0, "description": "Seconds added to both ends of each range", "maximum": 1, "minimum": 0, "type": "number" }, "track": { "description": "Target track index", "type": "number" } }, "required": [ "edl" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "diarize", "toolbox": "transcript", "description": "When: Who speaks when. Label speakers in an asset's (or clip's) whole source file with the local diarize-model addon. Async: returns {job_id}; the job result is {speakers, segments:[{start,end,speaker}]} in source seconds, and an existing transcript gets its words labelled S1, S2\u2026 (read with get_transcript). transcribe({diarize:true}) does both in one pass.", "schema": { "properties": { "asset": { "description": "Asset id (alternative to clip)", "type": "string" }, "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "min_off": { "default": 0.5, "description": "Bridge same-speaker gaps shorter than this (s)", "type": "number" }, "min_on": { "default": 0.3, "description": "Drop turns shorter than this (s)", "type": "number" }, "num_speakers": { "description": "Known speaker count; otherwise estimated", "type": "number" }, "threshold": { "default": 0.5, "description": "Cosine distance cut; lower finds more speakers", "maximum": 2, "minimum": 0, "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "procedural_authoring_guide", "toolbox": "procedural", "description": "When: How to write a procedural 3D package. Read before create_procedural. Returns {guide} - the full authoring guide (docs/procedural.md): package layout and manifest, the Lua API, budgets, the shader contract with both camera modes (world mode + a keyframed Camera clip is the recommended way to animate the view; scene:camera is for special cases), the unit-space toWorld/toBlock pattern, and a complete worked example.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "list_procedurals", "toolbox": "procedural", "description": "When: See installed procedural packages. Returns {procedurals:[{id, name, description, category, user, shaders:[names], params:[{key, label, type, min, max, default}]}]}. user:true marks packages made with create_procedural.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "create_procedural", "toolbox": "procedural", "description": "When: Write a new procedural 3D package. Create a package from a manifest, main.lua and shader pairs. Before anything is installed it is parsed, main.lua is run at t=0 with default params and camera, and every shader pair is compiled on the GL thread; failures return bad_manifest, lua_error or shader_compile_failed with errors[], the Lua log and the driver log per shader, and leave nothing on disk. Returns {id, stats:{meshCount, vertexCount, instanceCount, triangleCount, elapsedMs}, log, shaders:{name:{ok, log}}, shaderCheck: ok|skipped, warnings?}. id is user. and works with add_procedural at once. Not undoable. Do not call scene:camera in main.lua unless the shot must be self-contained: leave the script in world mode and frame it with add_camera + set_keyframes (see the guide).", "schema": { "properties": { "files": { "description": "{\"main.lua\": \"\", \"lit.vert\": \"\", \"lit.frag\": \"\"} - every shader needs both halves", "type": "object" }, "manifest": { "description": "procedural.json body (displayName, description, category, parameters, maxVertices, maxInstances); id is set for you", "type": "object" }, "slug": { "description": "a-z, 0-9, _ (max 48); the id becomes user.", "type": "string" } }, "required": [ "slug", "manifest", "files" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "update_procedural", "toolbox": "procedural", "description": "When: Change a My Procedurals package. Replaces parts of an existing user package by id, keeping the id so clips already using it pick the change up. Omitted manifest and files stay as they are; files overwrites or adds, remove_files drops shader files. edits patches files in place with exact-string replacements, applied in order after files (so a small fix does not need the whole script resent): each old must match its file exactly once, else the call fails bad_args naming the file and edit index and nothing is written. Validated like create_procedural. Bundled and add-on packages are refused (not_user_procedural) - fork those with create_procedural. Not undoable.", "schema": { "properties": { "edits": { "description": "Exact-string replacements applied to the package's files, in order, after `files`", "items": { "properties": { "file": { "description": "File name, e.g. main.lua", "type": "string" }, "new": { "description": "Replacement text (may be empty)", "type": "string" }, "old": { "description": "Exact text to replace; must occur exactly once in the file", "type": "string" } }, "required": [ "file", "old", "new" ], "type": "object" }, "type": "array" }, "files": { "description": "Only the files to overwrite or add, e.g. {\"main.lua\": \"...\"}", "type": "object" }, "id": { "description": "Existing user procedural id", "type": "string" }, "manifest": { "description": "Full replacement manifest (optional)", "type": "object" }, "remove_files": { "description": "Shader files to delete, e.g. [\"old.vert\", \"old.frag\"]", "items": { "description": "Shader file name", "type": "string" }, "type": "array" } }, "required": [ "id" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "get_procedural_source", "toolbox": "procedural", "description": "When: Read a procedural package's code. Returns {id, user, uses, manifest, files:{name: text}} for any package, bundled ones too, to learn from or fork. uses (user packages only) is how many clips in the project use it.", "schema": { "properties": { "id": { "description": "Id from list_procedurals", "type": "string" } }, "required": [ "id" ], "type": "object" }, "readOnly": true, "destructive": false }, { "name": "delete_procedural", "toolbox": "procedural", "description": "When: Remove a My Procedurals package. Delete a user package. Refuses with in_use when the project has clips of it unless force:true (those clips keep their data and render nothing). Not undoable.", "schema": { "properties": { "force": { "description": "Delete even if the project uses it", "type": "boolean" }, "id": { "description": "User procedural id", "type": "string" } }, "required": [ "id" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "add_procedural", "toolbox": "procedural", "description": "When: Place a procedural 3D clip. Add a clip of an installed package on a graphic track, creating one when needed. It is a 3D layer the size of the canvas; the whole scene is built by main.lua each frame, in project pixels (origin top-left, y down, +z away); frame it with a Camera clip (add_camera, set_keyframes with interpolation \"smooth\" on positionX/positionY/z and anchorX/Y/Z, camera_look_at aimAtTarget) rather than scene:camera in the script. Params start at the manifest defaults; params sets starting values, and set_keyframe on proc. animates them later (one key holds a constant). Returns {id, track, index}.", "schema": { "properties": { "at": { "description": "Start seconds (default: playhead)", "type": "number" }, "duration": { "description": "Clip length in seconds (default 5)", "type": "number" }, "id": { "description": "Package id from list_procedurals", "type": "string" }, "name": { "description": "Clip name (default: the package's name)", "type": "string" }, "params": { "description": "Starting values by param key; unknown keys fail bad_args", "type": "object" }, "seed": { "description": "The script's `seed` global (default 0)", "type": "integer" }, "track": { "description": "Optional destination graphic track; omitted picks or creates one", "type": "integer" } }, "required": [ "id" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "evaluate_procedural", "toolbox": "procedural", "description": "When: Run a package's Lua and report the scene. Runs main.lua on the spot (no rendering) and returns {cameraMode: world|own, cameraRead, stats:{meshCount, vertexCount, instanceCount, triangleCount, luaBytesPeak, elapsedMs}, bounds:{min, max}, meshes:[{shader, vertices, instances, uniforms}], lights, camera? (own mode), log (print output), errors}. Give id to try a package with default params plus params overrides, or clip to evaluate a placed clip as it renders at timeline second t (keyframes, seed and the covering Camera clip included; params overrides still apply). cameraMode is world when the Camera clip frames the scene (recommended) and own when the script called scene:camera. Without clip, t is the script's `time`. A script error returns ok:false lua_error with errors[]. Use it to check bounds and counts without exporting.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "height": { "description": "Canvas height for id mode (default: project)", "type": "integer" }, "id": { "description": "Package id (when not evaluating a clip)", "type": "string" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "params": { "description": "Param overrides by key, e.g. {\"count\": 12, \"tint\": \"#ff8800\"}", "type": "object" }, "seed": { "description": "Seed for id mode (default 0)", "type": "integer" }, "t": { "description": "Seconds: script time for id; timeline time for clip (default 0, or the clip start)", "type": "number" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "width": { "description": "Canvas width for id mode (default: project)", "type": "integer" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "tts_generate", "toolbox": "voice", "description": "When: Voiceover from text (billable). Speak `text` with an ElevenLabs or Fish Audio voice and import the MP3 into the bin (and onto the timeline with place). BILLABLE on the user's account. Needs a key and the user's consent (errors not_configured / consent_required tell you what to ask for). Async: returns {job_id}; the job result has {asset, clip?, duration, path}. Voice ids come from list_voices; omitted = the default set in Settings. provider \"local\" runs Chatterbox on this machine instead: free, no key, needs the tts-model addon (local_tts_status); voice is a list_local_voices id, language/exaggeration apply, and place defaults to off (bin only).", "schema": { "properties": { "exaggeration": { "description": "local only: expressiveness, default the last used (0.5 at first)", "maximum": 2, "minimum": 0.25, "type": "number" }, "language": { "description": "ElevenLabs: ISO language code to enforce. local: Chatterbox language code (local_tts_status), default the last used", "type": "string" }, "model": { "description": "Model id; omitted = Settings default (eleven_multilingual_v2 / s2.1-pro)", "type": "string" }, "place": { "description": "true = at the playhead on a free audio lane; or {at, track}" }, "provider": { "default": "elevenlabs", "description": "Voice service", "enum": [ "elevenlabs", "fish", "local" ], "type": "string" }, "similarity_boost": { "description": "ElevenLabs voice setting", "maximum": 1, "minimum": 0, "type": "number" }, "speed": { "description": "Speaking rate (ElevenLabs 0.7\u20131.2, Fish 0.5\u20132)", "type": "number" }, "stability": { "description": "ElevenLabs voice setting", "maximum": 1, "minimum": 0, "type": "number" }, "style": { "description": "ElevenLabs voice setting", "maximum": 1, "minimum": 0, "type": "number" }, "text": { "description": "What to say (\u22645000 characters)", "type": "string" }, "voice": { "description": "Voice id (ElevenLabs voice_id / Fish reference_id / local list_local_voices id)", "type": "string" } }, "required": [ "text" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "sfx_generate", "toolbox": "voice", "description": "When: Sound effect from a prompt (billable). ElevenLabs text-to-sound-effects: import the result into the bin (and onto the timeline with place). BILLABLE. Async: returns {job_id}; the job result has {asset, clip?, duration}.", "schema": { "properties": { "duration": { "description": "Seconds (0.5\u201330); omitted = the model picks", "type": "number" }, "loop": { "default": false, "description": "Make it loop seamlessly", "type": "boolean" }, "place": { "description": "true = at the playhead; or {at, track}" }, "prompt": { "description": "Describe the sound", "type": "string" }, "prompt_influence": { "default": 0.3, "description": "How literally to follow the prompt", "maximum": 1, "minimum": 0, "type": "number" } }, "required": [ "prompt" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_voices", "toolbox": "voice", "description": "When: Voices you can speak with. Voices on the user's ElevenLabs or Fish Audio account (and public ones they can use). Returns {voices:[{id, name, \u2026}], next?, default_voice}; pass next back as page.", "schema": { "properties": { "limit": { "default": 30, "description": "Voices per page", "maximum": 100, "minimum": 1, "type": "number" }, "mine": { "default": false, "description": "Fish: only the user's own voices", "type": "boolean" }, "page": { "description": "next from the previous page" }, "provider": { "default": "elevenlabs", "description": "Voice service", "enum": [ "elevenlabs", "fish" ], "type": "string" }, "search": { "description": "Filter by name", "type": "string" } }, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "cloud_provider_status", "toolbox": "voice", "description": "When: Which cloud services are ready. For elevenlabs and fish: {configured, key_source, consent, tts_model, default_voice, stt_model}. Keys are never returned.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "local_tts_status", "toolbox": "voice", "description": "When: Is local TTS ready. Local Chatterbox voice model: {available, model_loaded, loading, running, addon_id, languages:[{code,label}], last_voice, last_language, last_exaggeration}. available false = install addon_id first. warm_up starts loading the model now (about a minute) so the next generation doesn't wait; it returns at once.", "schema": { "properties": { "warm_up": { "default": false, "description": "Start loading the model if it isn't loaded", "type": "boolean" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "list_local_voices", "toolbox": "voice", "description": "When: Local voice library. Voices for tts_generate provider local and voiceover_from_subtitles: {voices:[{id, name, built_in, source}]}. The built-in voice has id \"default\".", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "add_voice", "toolbox": "voice", "description": "When: Clone a voice from a sample. Add a voice to the local library from 3-20 s of clean speech: a file (path, absolute) or a clip's source audio (clip; the clip's trimmed range unless in/out are given). in/out are seconds in the source file; a longer range keeps its first 20 s. Needs the tts-model addon. Async: returns {job_id}; the job result has {voice, name}.", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "in": { "description": "Sample start, seconds in the source file", "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "name": { "description": "Name for the voice", "type": "string" }, "out": { "description": "Sample end, seconds in the source file", "type": "number" }, "path": { "description": "Absolute path of an audio or video file (instead of clip)", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" } }, "required": [ "name" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "rename_voice", "toolbox": "voice", "description": "When: Rename a local voice. Rename a cloned voice. The built-in voice can't be renamed.", "schema": { "properties": { "name": { "description": "New name", "type": "string" }, "voice": { "description": "Voice id from list_local_voices", "type": "string" } }, "required": [ "voice", "name" ], "type": "object" }, "readOnly": false, "destructive": false }, { "name": "remove_voice", "toolbox": "voice", "description": "When: Delete a local voice. Delete a cloned voice and its stored sample. The built-in voice can't be removed.", "schema": { "properties": { "voice": { "description": "Voice id from list_local_voices", "type": "string" } }, "required": [ "voice" ], "type": "object" }, "readOnly": false, "destructive": true }, { "name": "voiceover_from_subtitles", "toolbox": "voice", "description": "When: Speak a subtitle clip. Speak every caption of a subtitle clip with a local voice, each line placed at its cue time on new audio tracks (one undo step). Needs the tts-model addon. Async: returns {job_id}; the job result has {placed, longer} (longer = lines that ran past their caption).", "schema": { "properties": { "clip": { "description": "Clip UUID from inspect({clips:true}) \u2014 preferred, stable across edits. Required unless both track and index are given; with neither the op fails not_found (it does not fall back to the selection).", "type": "string" }, "exaggeration": { "description": "Expressiveness; omitted = the last used", "maximum": 2, "minimum": 0.25, "type": "number" }, "index": { "description": "Clip index on that track if clip is omitted", "type": "integer" }, "language": { "description": "Chatterbox language code (local_tts_status); omitted = the last used", "type": "string" }, "track": { "description": "Track index if clip is omitted (0 = top). Positional \u2014 shifts when tracks are added or reordered.", "type": "integer" }, "voice": { "description": "list_local_voices id; omitted = the last used", "type": "string" } }, "type": "object" }, "readOnly": false, "destructive": false }, { "name": "get_teleprompter", "toolbox": "voice", "description": "When: Read the teleprompter script and its settings. Read the Teleprompter panel: {script, lines, chars, speed, font_size, overlay, follow_recording, playing, position}. script is saved with the project. speed (lines per second), font_size, overlay (the script shown over the preview) and follow_recording (scrolling starts, pauses and stops with audio recording) are the user's global settings. playing and position (lines scrolled) are the live scroll.", "schema": { "properties": {}, "type": "object" }, "readOnly": true, "destructive": false }, { "name": "set_teleprompter", "toolbox": "voice", "description": "When: Put a script in the teleprompter for the user to read. Put a script in the Teleprompter panel for the user to read while recording a voice-over themselves, and set how it scrolls. Only supplied keys change. The script is saved with the project and, as in the panel, is not undoable: replacing a non-empty script that differs fails conflict unless replace:true, so read it with get_teleprompter first. A new script stops the scroll and starts from the top. speed, font_size, overlay and follow_recording are the user's global settings, kept across sessions. Returns the settings plus lines and chars (not the script).", "schema": { "properties": { "follow_recording": { "description": "Scrolling starts, pauses and stops with audio recording", "type": "boolean" }, "font_size": { "description": "Text size in pixels (panel default 32)", "maximum": 96, "minimum": 12, "type": "integer" }, "overlay": { "description": "Show the script over the preview", "type": "boolean" }, "replace": { "description": "Allow replacing a different, non-empty script (default false)", "type": "boolean" }, "script": { "description": "The whole script; \"\" clears it. Line breaks are kept (\\r\\n becomes \\n)", "type": "string" }, "speed": { "description": "Scroll speed in lines per second (panel default 0.6)", "maximum": 5, "minimum": 0.1, "type": "number" } }, "type": "object" }, "readOnly": false, "destructive": true } ]