vidx
v0.2.1Local video understanding and editing for agents, in small text instead of frames.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
index_video Index a video
Index a video file: neural shot cuts, keyframes, motion and colour per shot, on-screen text and watermarks, transcript, speech/music/sfx stretches, beats, events, CLIP embeddings. Re-indexing the same file only runs what is missing unless force=true. captions=true adds one-line shot captions (slower). glitch=true also scans AI-generated clips for morphing; hits are suspects, so confirm them with peek. Returns video_id, duration, shot count, language and a short summary.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
captions | boolean | |
force | boolean | |
glitch | boolean |
overview Video overview
Table of contents. level="scenes" covers the whole video in <=limit lines (similar shots merged, long shots split at pauses); level="shots" lists shots s1..sN (page with offset).
| Parameter | Type | Description |
|---|---|---|
video_id * | string | |
level | string | |
limit | integer | |
offset | integer |
query Find moments
Find time ranges. kind: speech (exact+fuzzy transcript match), visual (CLIP text->shot), text (on-screen words), event (e.g. "silence>1.5", "black", "loud", "freeze", "laugh", "glitch", "music", "sfx", "speech", "beat", or any detector trained with `vidx teach`), any (event syntax, else text+speech+visual).
| Parameter | Type | Description |
|---|---|---|
text * | string | |
video_id * | string | |
kind | string | |
limit | integer |
get_segment Read a time range
Detail for one range: start/end in seconds or shot ids (start="s3" alone = that shot). fields: any of words,events,shots,wordtimes,detail. wordtimes = per-word timestamps for precise cuts; detail = per-shot motion curve and peak, colour stats, audio level, keyframe times, glitch flag, text boxes.
| Parameter | Type | Description |
|---|---|---|
start * | string | |
video_id * | string | |
end | string | |
fields | string |
peek Look at frames
SEE frames (costs image tokens; use sparingly). target = video_id or a rendered version id (v3). times = seconds or shot ids, e.g. ["12.5", "s3"]; omit for an even visual summary. Returns one contact sheet (max 4x4 tiles, each labeled with its timestamp); size = longest side of a tile. times=["cuts"] on a rendered version shows the frames either side of each cut (worst colour jumps first when there are many) plus a colour strip of every clip: a whole edit in one look.
| Parameter | Type | Description |
|---|---|---|
target * | string | |
grid | boolean | |
size | integer | |
times |
edit Create an edit version
Create a version from an edit script (see server instructions for the DSL). With parent_version, the script is appended to the parent's script (incremental fix) unless it has its own `base` line. Returns version id, segment count, output duration and warnings.
| Parameter | Type | Description |
|---|---|---|
dsl * | string | |
video_id * | string | |
parent_version | string |
render Render a version
Render a version. preset: original | reel_9x16 | yt_16x9. preview=true is a fast 480p draft. Clips are cached, so re-rendering after a small change only encodes what changed. Writes next to the source in vidx_renders/ (or to out_path). Returns path, duration, size, pieces encoded vs reused.
| Parameter | Type | Description |
|---|---|---|
version_id * | string | |
out_path | string | |
preset | string | |
preview | boolean |
check Check a render
QA a rendered version: black frames, new freezes, mid-word cuts, audio jumps at joins, loudness vs preset target, duration limits. Each finding has a time and a DSL fix. Returns OK when clean.
| Parameter | Type | Description |
|---|---|---|
version_id * | string |
diff Compare two versions
What changed between two versions: added/removed/moved source ranges, option changes, output duration delta.
| Parameter | Type | Description |
|---|---|---|
version_a * | string | |
version_b * | string |