agentic-video

v0.3.8
io.github.tlq5l/agentic-video Checked 4 days ago Published 21 days ago

Local video tools for AI agents: contact sheets, transcripts, cuts, loudness and sync checks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

count_repetitions

Count completed cycles of a repeated visual action (jumps, claps, bounces, swings) inside one window of at most 180 seconds. Give `region` (fractions of the frame: x, y, w, h) to isolate the moving thing. Repeat the same call while status=in_progress; verify peak badges and ambiguous edges with inspect_window. For separate appearances of a specific symbol or exact on-screen text use count_occurrences; to locate one moment use search_visual. For a longer clip call once per window, cutting at pauses between cycles so none straddles an edge. The count is a rough first pass and can be far off on r…

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
action_hintstringShort phrase naming the action being counted, e.g. 'jumping jacks'.
end_secnumber | string | nullEnd of the window in seconds; defaults to the end of the video. Give both bounds for a video longer than 180 s. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
fpsnumberSampling rate, default 10. Larger values than 15 are clamped to 15 and the result says so.
max_period_secnumber | stringLongest expected cycle in seconds (default 3); must exceed min_period_sec. Bounds the amplitude counter only; the periodicity check ignores it. Also accepts a timecode string in MM:SS.mmm form, e.g. 0…
methodstringauto (default) picks between motion, embedding and a periodicity check; motion or embedding forces that amplitude counter alone.
min_period_secnumber | stringShortest expected cycle in seconds (default 0.4). Bounds the amplitude counter only; the periodicity check ignores it and searches from 0.25 s. Also accepts a timecode string in MM:SS.mmm form, e.g. 0…
regionRectangle that contains the repeating motion, as fractions of the frame: x, y (top-left) and w, h (size), with x+w <= 1 and y+h <= 1. Uses w/h; width/height with the same meaning is also accepted. For…
start_secnumber | stringStart of the window in seconds (default 0). The window may be at most 180 s long. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.

count_occurrences

Count how many separate times a specific symbol/object or exact on-screen text appears. Use for questions like 'how many separate times does the yellow outlined circle appear (ignore other colours)', 'how many times does the exact word RELEASE appear (not RELEASED)', 'how many times does the green diamond cross the screen'. Give `description` (colour and shape words are enforced, so look-alikes in another colour or shape do not count) and/or `text` (whole-word match by offline OCR). Returns `count` plus one span per continuous appearance (start_sec, end_sec, representative_sec, region, travel,…

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
case_sensitivebooleanRequire the same letter case for `text`.
descriptionstringVisible thing to count, e.g. 'yellow outlined circle', 'green diamond', 'red star'. Name its colour and shape; text on screen goes in `text`.
directionstringCount the appearances whose net motion across the frame is this way, e.g. left_to_right for 'how many times did it cross left to right'. Motion is estimated from each span's first and last positions,…
end_secnumber | string | nullDefaults to the end of the video. At most 2400 frames are analyzed per call, so fps is lowered automatically on long windows. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
fpsnumberSampling rate, default 5. Appearances shorter than 1/fps can be missed; raise it for brief flashes. Larger values than 15 are clamped to 15 and the result says so.
max_spansintegerMaximum spans listed (default 20, maximum 100; larger values are clamped to 100 and the result says so). `count` always includes every span.
min_gap_secnumber | stringAbsence of at least this long starts a new span; shorter dropouts stay inside one span. Raising it above the default 0.3 JOINS separate appearances whose gap is shorter than it (0.8 merges appearances…
start_secnumber | stringSeconds, or a timecode string in MM:SS.mmm form, e.g. 00:14.250.
textstringExact on-screen phrase, matched as whole words (RELEASE matches 'RELEASE' and 'RELEASE NOTES', not 'RELEASED' or 'PRE-RELEASE').

probe_video

Read a video's duration, frame rate, resolution, codecs, and whether it has an audio track and a video track. Call this first: duration_sec bounds every start_sec/end_sec you pass to other tools. Audio-only files (.m4a, .mp3, .wav) are accepted: has_video is false and width, height and fps are 0. has_audio tells you whether transcribe, search_transcript and the audio tools (audio_onsets, loudness_timeline, spectrogram_window) can work; the visual tools and sync_check need has_video true. `source` is a local file path or a video URL and is the same in every tool: an x.com / Twitter post with a…

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…

transcribe

Get the full speech transcript as timestamped segments (cached after the first run). Audio-only files (.m4a, .mp3, .wav) work too. To find where a specific word or phrase is spoken, use search_transcript instead of reading it all. If the requested model is not cached, returns another cached transcript with cached_model_size and requested_model_cached=false while one background job runs; with no transcript cached, returns status=in_progress and retry_after_seconds, so repeat the same call after that delay. model_size: tiny, base or small (more accurate, slower on the CPU), or turbo (Whisper lar…

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
model_sizestring

search_transcript

Find when a word or phrase is SPOKEN. Audio-only files (.m4a, .mp3, .wav) work too. Default mode=hybrid lists exact keyword matches first (match=exact: the phrase; match=all_terms: every content word in one segment), then passages that match by meaning (match=semantic: a 20 s window, found on this Mac with EmbeddingGemma 2; nothing is sent to the cloud), so a reworded question still finds the moment. mode=lexical gives keyword matches only. When no hit is exact or all_terms, the words were not found in the speech: semantic hits are the closest passages, not proof, so read their text before ans…

ParameterTypeDescription
query *stringWords or a phrase to find in the speech, e.g. 'launch date'. Punctuation and case are ignored.
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
modestringhybrid (default): keyword matches first, then matches by meaning. lexical: keyword matches only. For example: "mode": "lexical".
top_kintegerMaximum hits (default 5, maximum 50; larger values are clamped to 50 and the result says so).

build_visual_index

Start or poll construction of the local visual frame index that search_visual needs. Call it once, then repeat the same call (or search_visual, which reports status=index_required or partial) until the status is complete; frames are processed in bounded chunks. count_occurrences, contact_sheet and the inspect tools do not need the index.

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…

search_visual

Find WHEN something visible happens: an object, person, action or scene (semantic match between the query and sampled frames). It matches meaning, not letters, so it cannot find on-screen words or numbers (names, scores, jersey or bib numbers): find those with count_occurrences `text`, which reads text in frames, one window of up to 2400 s per call. Returns up to top_k ranked frame hits (default 5, maximum 20; larger values are clamped and the result says so), merged intervals (the one holding rank 1 grows from its best frames only over neighbouring frames that score close to the best, up to 8…

ParameterTypeDescription
query *stringNatural-language description of visible content.
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
end_secnumber | string | nullExclusive end of the range to search, in seconds; defaults to the end of the video. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
start_secnumber | stringInclusive start of the range to search, in seconds. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
top_kintegerMaximum frame hits (default 5, maximum 20; larger values are clamped to 20 and the result says so). This ranks frames and cannot count: use count_occurrences for counts.

contact_sheet

Get ONE grid image of evenly spaced frames, with burned timestamp badges, across the whole video or a start_sec/end_sec range: the cheapest way to see what a video contains before searching. Default 12 samples, at most 150 (larger values are clamped and the result says so). Use it to survey; use search_visual to find a specific thing, overview_chunks to survey a long video as ordered sheets, and inspect_window or inspect_windows for dense consecutive frames of a short span.

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
colsintegerGrid columns (default 4).
end_secnumber | stringOptional exclusive end of the overview range in absolute video seconds. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
samplesintegerRequested number of thumbnails; values above 150 are accepted and clamped to 150.
start_secnumber | stringOptional inclusive start of the overview range in absolute video seconds. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.

review_video

First look at a video in ONE call: container metadata (duration, size, fps, codecs, has_audio), a contact sheet image with burned timestamp badges (default 24 samples; `samples` up to 150, larger values are clamped and the result says so), every cut and transition from detect_cuts, every near-black stretch of at least 0.2 s (`black_ranges`: start, end and duration; at most 50 are listed and `black_total` counts them all), and a loudness summary (average and peak level, silence gaps, the strongest band-energy outliers with their times). It runs probe_video, contact_sheet, detect_cuts, the black…

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
samplesintegerContact sheet thumbnails (default 24; values above 150 are clamped to 150 and the result says so).

overview_chunks

Survey a long video as consecutive contact sheets, one per chunk_sec (default 60 s), so every stretch is covered in order. At most max_chunks sheets per call (default and maximum 32): for a longer video raise chunk_sec or page through it with start_sec/end_sec; a call over budget fails and says what chunk_sec would fit. samples_per_chunk defaults to 8 (maximum 150, larger values are clamped). Use contact_sheet instead when one sheet is enough.

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
chunk_secnumber | stringSeconds covered by each sheet (default 60, maximum 600). Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
colsinteger
end_secnumber | stringOptional exclusive end in absolute video seconds; defaults to the end of the video. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
max_chunksintegerMost sheets in one call (default and maximum 32; larger values are clamped). The call fails if the range needs more chunks: raise chunk_sec or narrow the range.
samples_per_chunkintegerThumbnails per sheet (default 8; values above 150 are clamped to 150 and the result says so).
start_secnumber | stringOptional inclusive start in absolute video seconds. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.

refine_temporal_beam

Zoom into candidate time windows: splits each window into `fanout` contiguous child ranges and returns one timestamped contact sheet per child, without ranking relevance. Use it after contact_sheet or search_visual has narrowed the answer to a few windows and you want to localize inside them; use inspect_windows for dense consecutive frames instead. Budget: windows x fanout x samples_per_child must be at most max_total_samples (default 96, maximum 300); a call over budget fails and says which of the three to lower.

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
windows *arrayAbsolute time ranges to zoom into, e.g. [{"start_sec": 10, "end_sec": 40}], each within the video.
align_to_cutsboolean
colsinteger
compact_parent_sheetboolean
context_secnumber | stringSeconds of padding added to each side of every window (default 0). Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
fanoutintegerChild ranges per window (default 4, maximum 8; larger values are clamped and the result says so).
max_total_samplesintegerFrame budget: windows x fanout x samples_per_child must not exceed it (default 96, maximum 300; larger values are clamped and the result says so).
samples_per_childintegerThumbnails per child range (default 3, maximum 12; larger values are clamped and the result says so).

track_region_changes

Watch one fixed rectangle of the frame (region: x, y, width, height as fractions 0-1) from start_sec to end_sec (both required) and rank the moments its pixels change most, as candidates to verify with inspect_moments or inspect_window. Use for a scoreboard, counter, indicator light or door. Slow continuous motion ranks no candidates: read steady_change.detected for that. Returns ranked candidates, not a count: for a bounded count of state transitions use track_region_events. Budget: about (end_sec - start_sec) x sample_fps frames, at most max_total_frames (default 600, maximum 2000); a call o…

ParameterTypeDescription
end_sec *number | stringEnd of the range in seconds; must be within the video. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
region *Rectangle to watch, as fractions of the frame: x, y (top-left) and width, height, with x+width <= 1 and y+height <= 1. Uses width/height, not w/h; w/h with the same meaning is also accepted. For examp…
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
start_sec *number | stringStart of the range in seconds. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
frame_widthintegerDecoded frame width in pixels (default 640, maximum 1920; larger values are clamped).
max_candidatesintegerMost candidates returned (default 32, maximum 128; larger values are clamped). Raise min_change_score to keep only stronger ones.
max_total_framesintegerFrame budget for the whole range (default 600, maximum 2000; larger values are clamped). The call fails when (end_sec - start_sec) x sample_fps exceeds it.
min_change_scorenumber
min_separation_secnumber | stringSeconds, or a timecode string in MM:SS.mmm form, e.g. 00:14.250.
robust_sigmanumber
sample_fpsnumberSampling rate (default 0.25, maximum 10; larger values are clamped and the result says so). Changes shorter than 1/sample_fps can be missed.

track_region_events

Count discrete state changes (transitions) inside one fixed rectangle of the frame (region: x, y, width, height as fractions 0-1) between start_sec and end_sec (both required). Returns event_count plus before/after evidence moments to verify. Use for 'how many times did the light turn on' or 'how often does the counter change'. For ranked change candidates without a count use track_region_changes; for a periodic action use count_repetitions; for a symbol appearing anywhere on screen use count_occurrences. Budget: about (end_sec - start_sec) x sample_fps frames, at most max_total_frames (defaul…

ParameterTypeDescription
end_sec *number | stringEnd of the range in seconds; must be within the video. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
region *Rectangle to watch, as fractions of the frame: x, y (top-left) and width, height, with x+width <= 1 and y+height <= 1. Uses width/height, not w/h; w/h with the same meaning is also accepted. For examp…
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
start_sec *number | stringStart of the range in seconds. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
ambiguity_marginnumber
change_thresholdnumber
frame_widthintegerDecoded frame width in pixels (default 640, maximum 1920; larger values are clamped).
max_eventsintegerMost events returned (default 32, maximum 128; larger values are clamped). Raise change_threshold to keep only stronger ones.
max_total_framesintegerFrame budget for the whole range (default 600, maximum 2000; larger values are clamped). The call fails when (end_sec - start_sec) x sample_fps exceeds it.
min_separation_secnumber | stringSeconds, or a timecode string in MM:SS.mmm form, e.g. 00:14.250.
sample_fpsnumberSampling rate (default 0.25, maximum 10; larger values are clamped and the result says so). Transitions shorter than 1/sample_fps can be missed.

inspect_moments

Look closely around specific instants: for each moment (timestamp_sec, optional label) returns a contact sheet of frames before, at and after it (default 4 s before and 4 s after, samples_per_moment 9). Use it to verify a hit from search_visual, search_transcript, detect_cuts, audio_onsets or track_region_changes. At most 16 moments per call and max_total_samples frames in all (default 144, maximum 400); a call over budget fails and says what to lower. For one continuous span of frames use inspect_window.

ParameterTypeDescription
moments *arrayInstants to inspect, e.g. [{"timestamp_sec": 12.5, "label": "door opens"}], at most 16, each within the video.
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
after_secnumber | stringSeconds of context after each moment (default 4). Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
before_secnumber | stringSeconds of context before each moment (default 4). Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
colsinteger
max_momentsintegerMost moments accepted (default and maximum 16; larger values are clamped).
max_total_samplesintegerFrame budget: moments x samples_per_moment must not exceed it (default 144, maximum 400; larger values are clamped).
samples_per_momentintegerFrames per moment, an odd number 3-25 (default 9; larger values are clamped to 25).

inspect_windows

Dense consecutive frames (default 4 fps) for several time ranges in one call, with optional context_sec padding and merging of overlapping windows. At most 16 windows and max_total_frames frames in all (default 150, maximum 500); a call over budget fails and says to lower fps or shorten the windows. For one range use inspect_window, for a coarse survey use contact_sheet, for frames around single instants use inspect_moments.

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
windows *arrayTime ranges to inspect, e.g. [{"start_sec": 10, "end_sec": 14}], at most 16, each within the video.
context_secnumber | stringSeconds of padding added to each side of every window (default 0). Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
fpsnumberSampling rate (default 4, maximum 30; larger values are clamped).
max_total_framesintegerFrame budget for all windows together (default 150, maximum 500; larger values are clamped). Lower fps or shorten the windows to fit.
max_windowsintegerMost windows accepted (default and maximum 16; larger values are clamped).
merge_overlapsbooleanMerge overlapping windows into one (default true).

inspect_window

Dense consecutive frames of ONE short window [start_sec, end_sec] (both required) with timestamp overlays, as a contact sheet plus frame list. Default 4 fps, maximum 30 (larger values are clamped). At most about 150 frames and 600 seconds per call: frames = fps x duration, so a 10 s window allows at most 15 fps; a call over budget fails and says the fps that fits. Use it to verify a moment or a count. For a wide overview use contact_sheet; for several ranges use inspect_windows. With read_text true each frame also lists the on-screen text read from it (Apple Vision, macOS only).

ParameterTypeDescription
end_sec *number | stringEnd of the window in seconds; must be within the video. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
start_sec *number | stringStart of the window in seconds. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
fpsnumberSampling rate (default 4, maximum 30; larger values are clamped). Frames = fps x duration and must stay within about 150.
read_textbooleanAlso read the on-screen text in each returned frame with Apple Vision OCR (macOS only). Each frame then lists text_lines: the text, confidence and box (x, y, width, height; 0 to 1, top-left origin) of…

frame_at

Use this when you need one exact frame at full size, or a crop to read small text; for many frames use inspect_window or contact_sheet. Returns one PNG of the frame shown at time_sec, at the source's native resolution, with no timestamp drawn on it. An optional crop (x, y, width, height in source pixels) cuts a rectangle out of that frame, and scale (1 to 4, default 1) enlarges the crop with Lanczos so small text is easier to read. frame_time_sec is the start time of the frame actually decoded: the last frame starting at or before time_sec, so on variable-frame-rate video it can be well before…

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
time_sec *number | stringMoment in seconds, from 0 to the media duration. Returns the frame shown at that moment. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
cropobjectOptional rectangle in source pixels: x and y (top-left corner, >= 0) and width and height (>= 1). It must lie inside the frame as displayed (rotation applied): x + width <= source width and y + height…
read_textbooleanAlso read the on-screen text in each returned frame with Apple Vision OCR (macOS only). Each frame then lists text_lines: the text, confidence and box (x, y, width, height; 0 to 1, top-left origin) of…
scalenumberEnlargement of the (cropped) frame, 1 to 4. The default 1 leaves the pixels as they are. Use 2 to 4 to read small text.

detect_cuts

List scene changes (timestamp_sec, score, kind) in the whole video or a start_sec/end_sec range. Hard cuts and animated changes (fades, dissolves, slides, wipes, zooms) are both returned; `kind` tells them apart: "cut" or "transition". A transition's timestamp is its middle. Scores of the two kinds are not comparable. threshold 0-1 (default 0.25) applies to hard cuts only: raise it to keep only stronger cuts. A hard cut between two similar pictures is found by a second check and listed as a cut with a score below the default threshold; any threshold above 0.25 leaves these out. A change that i…

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
end_secnumber | stringOptional exclusive end of the cut-search range in absolute video seconds. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
start_secnumber | stringOptional inclusive start of the cut-search range in absolute video seconds. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
thresholdnumberCut strength cutoff 0-1 (default 0.25). Raise it to keep only stronger cuts.

check_frame_cadence

Find stretches where the picture updates less often than the file's frame rate, e.g. a 30 fps capture padded to 60 fps so every frame is doubled (judder). It decodes every frame at 160x90 grey and calls a frame a repeat when it is near-identical to the one before; a range is a stretch of at least 0.5 s where repeats fill at least a quarter of every half second while other frames still change. Each range gives start_sec, end_sec, frames, duplicate_frames and effective_fps (unique frames per second; compare with frame_rate). Runs of repeats longer than 0.5 s are holds (still shots, title cards,…

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…

audio_onsets

List non-speech sound attacks (hits, claps, beats) with millisecond timestamps and five-band energy profiles, optionally restricted to a frequency band (band_hz: sub, low_mid, mid, high, air, or [low_hz, high_hz]) and compared with another source (compare_to). min_strength 0-1 (default 0.12): raise it for only strong onsets. min_gap_sec (default 0.035 s) merges onsets within that gap of a group's first onset into one onset at the first time with the group's strongest strength; 0 keeps every raw onset. At most 500 onsets are listed; `total` is the full count and the result says how to see the r…

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
band_hzRestrict to a named band (sub, low_mid, mid, high, air) or a [low_hz, high_hz] range.
compare_tostringPath or video URL of another media file whose in-band energy is compared at each onset.
end_secnumber | stringOptional exclusive end in seconds; omit to analyze to the end. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
min_gap_secnumber | stringOnsets closer than this many seconds to a group's first onset are merged into it: the group keeps the first onset's time and the strongest strength. 0 keeps every raw onset (default 0.035). Also accep…
min_strengthnumberOnset strength cutoff 0-1 (default 0.12). Raise it to keep only stronger onsets.
start_secnumber | stringOptional inclusive start in seconds; omit to analyze from the beginning. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.

loudness_timeline

Measure loudness over time: RMS, peak, band energies, spectral centroid, silence gaps, and band-energy outliers classified as steps, ramps or transients, in fixed windows (window_sec 0.01-600, default 0.25) or beat-length windows (bpm 20-300; give one or the other). At most 500 windows are listed in `windows` (`total` is the full count; `outliers` and `silence_gaps` always cover the whole range); use a larger window_sec or a start_sec/end_sec range for the rest. Ranges needing over 50,000 windows are rejected with the window_sec that fits. Needs an audio track (audio-only files work too). For…

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
bpmnumberUse one-beat windows at this tempo, 20-300. Give this or window_sec, not both.
end_secnumber | stringOptional exclusive end in seconds; omit to analyze to the end. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
ignore_rangesarrayRanges with a reason (e.g. an intentional silence) that are excluded from outlier detection.
start_secnumber | stringOptional inclusive start in seconds; omit to analyze from the beginning. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
window_secnumber | stringFixed window length in seconds, 0.01-600 (default 0.25). Larger values than 600 are clamped to 600. Give this or bpm, not both. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.

spectrogram_window

Render a log-frequency dB spectrogram PNG for [start_sec, end_sec] (both required, at most 600 s) with absolute timecode badges and optional event marks (time_sec + label). Use a short window (a few seconds) to look at one sound; find candidate times with audio_onsets or loudness_timeline first. Needs an audio track (audio-only files work too).

ParameterTypeDescription
end_sec *number | stringEnd of the window in seconds; the window may be at most 600 s long. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
start_sec *number | stringStart of the window in seconds. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
marksarrayOptional event markers drawn on the image, e.g. [{"time_sec": 12.5, "label": "kick"}].

sync_check

Check audio/video sync: compares visual cuts with measured audio onsets, and optionally with intended sound cues (time_sec, label, optional band_hz), within tolerance_ms (0-5000, default 80). Returns per-cut and per-cue matches and unmatched strong onsets (the cuts and unmatched_strong_onsets lists show at most 500 items each; the cues list is never cut short; total_cuts and total_cues are the full counts). Each cue reports candidate_onsets_count, the number of onsets near it; verbose true reports that cue's candidate_onsets list instead of the count. Needs an audio track. To look at the two s…

ParameterTypeDescription
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
bpmnumberTempo of the music, 20-300. Compares each cue with uncued moments at the same beat phase, so steady backing percussion does not hide a missing sound.
cuesarrayIntended sound cues to check, e.g. [{"time_sec": 12.5, "label": "hit"}]. Omit to compare cuts with onsets only.
tolerance_msnumberMatch window in milliseconds (default 80, maximum 5000; larger values are clamped).
verbosebooleanfalse (default) gives each cue candidate_onsets_count; true gives each cue candidate_onsets (the onsets near it with time_sec, offset_ms and strength) instead of the count.

label_sounds

SWITCHED OFF: Cloudflare Workers AI is disabled, so this tool refuses every call and sends nothing. Free alternative: audio_onsets, loudness_timeline and spectrogram_window, measured on this machine (they do not name sounds). When switched back on, it names the sounds in a stretch of a video's audio: cuts [start_sec, end_sec] (both required) into windows of window_sec (default 5 s, at most 60 windows per call) and returns, per window, the chance of each label plus none_chance, from a cloud model (Clef-omni on Cloudflare Workers AI). When on, it SENDS THE AUDIO TO CLOUDFLARE: never use it on pe…

ParameterTypeDescription
end_sec *number | stringEnd of the range in seconds; at least 1 s after start_sec, and the range may hold at most 60 windows. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
start_sec *number | stringStart of the range in seconds. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
labelsarraySound names to choose from, e.g. ["dog barking", "siren"] (at most 50, distinct). Default: 20 common sounds.
window_secnumber | stringLength of each labelled window in seconds (default 5, from 1 to 30). The last window may be shorter; a remainder under 1 s is not labelled. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14…

watch_for

SWITCHED OFF: Cloudflare Workers AI is disabled, so this tool refuses every call and sends nothing. Free alternative: search_visual (local CLIP index; build_visual_index first), or inspect_window and contact_sheet to look yourself. When switched back on, it watches a stretch of a video for yes/no conditions with a cloud model (Clef on Cloudflare Workers AI) and returns the moments each one started to hold. One frame every interval_sec (default 5 s, 1 to 600) from [start_sec, end_sec] is asked every condition (1 to 8 yes/no questions about ONE frame, e.g. "Is a person visible?"); a condition wa…

ParameterTypeDescription
conditions *array1 to 8 distinct yes/no questions about one frame, e.g. ["Is a person visible?", "Is a red rectangle visible?"]. Name what to look for; vague questions give vague chances.
source *stringLocal video file path, or a video URL (X/Twitter post, YouTube link, other sites yt-dlp supports, direct .mp4 link). A URL is downloaded once and cached; while it downloads the result is status=in_pro…
consecutiveintegerSamples in a row that must count as yes before a wake (1 to 5, default 2).
cooldown_secnumber | stringSeconds after a wake during which the same condition wakes no more (0 to 3600, default 30). Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
cutnumberChance of yes (above 0, up to 1) at which a sample counts as yes (default 0.5).
end_secnumber | stringEnd of the range in seconds (default: the end of the video). Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
interval_secnumber | stringSeconds between samples (default 5, from 1 to 600). The range may hold at most 720 samples. Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.
start_secnumber | stringStart of the range in seconds (default 0). Also accepts a timecode string in MM:SS.mmm form, e.g. 00:14.250.

motion_open

Warm a GIF or short clip in the background so later motion_ calls answer in milliseconds. Returns at once: status ready when the clip is cached, in_progress with retry_after_seconds (call again with the same source), or failed with the error when the clip cannot be decoded. The cache lives in memory and on disk, keyed by file fingerprint.

ParameterTypeDescription
source *stringLocal GIF or video file path, or a video URL (downloaded once and cached, as in other tools).

motion_sheet

Use this to see a clip's frames and where they change. Returns one PNG contact sheet: each frame, with a heat map of its change from the previous frame underneath, plus the per-frame change list.

ParameterTypeDescription
source *stringLocal GIF or video file path, or a video URL (downloaded once and cached, as in other tools).
cellintegerCell width in pixels.
colsintegerFrames per row.

motion_stats

Use this first for a yes or no on a GIF's motion. Returns boil (flicker on still pixels, the README formula; lower is calmer), still_frac, the loop-seam change against the median, and the per-frame change. Optional box limits the numbers to one region.

ParameterTypeDescription
source *stringLocal GIF or video file path, or a video URL (downloaded once and cached, as in other tools).
boxarray[x, y, width, height] in pixels of the decoded frames; clipped to the frame.

motion_boil_map

Use this to see where a GIF boils. Returns one PNG with still pixels coloured by flicker (hot means boiling) over the frame, plus the overall boil score.

ParameterTypeDescription
source *stringLocal GIF or video file path, or a video URL (downloaded once and cached, as in other tools).
gainnumberFlicker level that shows as fully hot; lower makes faint boil visible.

motion_zoom

Use this to inspect one region frame by frame at magnification, with a change heat map under each frame. Returns one PNG. The zoom is capped so the image stays under the size limit; the result reports the zoom used.

ParameterTypeDescription
box *array[x, y, width, height] in pixels of the decoded frames; clipped to the frame.
source *stringLocal GIF or video file path, or a video URL (downloaded once and cached, as in other tools).
framesstringInclusive frame range 'first-last' (0-based), e.g. 10-20. Omit for all frames.
zoomintegerMagnification.

motion_profile

Use this to find stutter, freeze, duplicate and loop-seam problems by frame. Returns a PNG graph of speed and change, the flagged frames, and counts per kind. Speed counts only changes above 2 luma levels; there is no optical flow.

ParameterTypeDescription
source *stringLocal GIF or video file path, or a video URL (downloaded once and cached, as in other tools).

motion_compare

Use this to compare one frame of two clips side by side with a diff panel. `source` and `compare_to` are both clips and must be the same size. Returns one PNG and the mean absolute difference.

ParameterTypeDescription
compare_to *stringSecond local GIF or video file path, or a video URL.
source *stringLocal GIF or video file path, or a video URL (downloaded once and cached, as in other tools).
boxarray[x, y, width, height] in pixels of the decoded frames; clipped to the frame.
frameinteger0-based frame index in both clips.

motion_selftest

Use this to check that the motion detectors work before trusting them. Plants known faults (dropped, swapped, duplicated and frozen frames, a loop-seam jump, noise on still pixels) into a clean sprite, reports whether each is caught, and counts false flags on the clean clip. Omit source to use the bundled fixture.

ParameterTypeDescription
sourcestringOptional local clip or video URL to use instead of the bundled sprite.