Frame Lens

v2.3.0
io.github.Makkov-design/framelens Checked 4 days ago Published 8 days ago

Eyes and ears for AI agents: measured cuts, easing, palette, beats and transcripts from any video.

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

probe Open a video

Fetches the video if needed and reports duration, size, frame rate, audio and captions, plus the workspace folder where every later result is written. Call it first; then `plan` for the goal, or `transcript` / `frames` directly.

ParameterTypeDescription
source *stringThe video: a link (YouTube and other sites), a path to a local file, or `inbox` for the newest file in the inbox folder.

plan Plan the analysis for a goal

Classifies the video (talking head, screen, motion graphics, music video, live action) and returns the steps that fit the goal: listen (podcast, lecture), learn (tutorial to guide), find (a moment), style (replicate motion design), sound (sound design), production (how it was made). When the words come from automatic captions, listen and learn add a name check: frames where likely product and proper names are said, and NAMES.md to fill with the spelling the screen shows. Pass `goal`, or the user's request in `request` to infer it. Then run the steps in order: each step's `args` are ready to pa…

ParameterTypeDescription
source *stringThe video: a link (YouTube and other sites), a path to a local file, or `inbox` for the newest file in the inbox folder.
goalstringThe user's goal. Omit to infer it from `request` or the video type.
phrasestringFor `find`: the phrase to look for.
requeststringThe user's request in their own words, used to infer the goal.

transcript Word-timed transcript

What is said, with the time of every word when the source has it: captions first, then the configured fallback engine. Writes transcript.json and transcript.md to the workspace and returns the text (long transcripts are shortened; read transcript.md for all of it).

ParameterTypeDescription
source *stringThe video: a link (YouTube and other sites), a path to a local file, or `inbox` for the newest file in the inbox folder.
languagestringPreferred caption language code, e.g. "en" or "ru".
max_charsintegerMost characters of transcript to return inline.

frames Frames and contact sheets

Extracts frames and arranges them into labelled contact sheets (time, frame number and the words spoken under each picture). Sample with exactly one of: `at` (list of moments), `every` (seconds), `fps`, `every_frame` (every original frame, for motion and transitions), or `around` (a phrase from the transcript; it picks the range and takes `every`, `fps` or `every_frame` with it, 4 fps by default). Work like a loupe: an overview first, then dense frames only around the moments that matter. Sheets are written to the workspace; the first ones are shown inline, open the rest by path.

ParameterTypeDescription
source *stringThe video: a link (YouTube and other sites), a path to a local file, or `inbox` for the newest file in the inbox folder.
aroundstringA phrase from the transcript; frames are taken around it.
atarrayExact moments.
columnsintegerFrames side by side on each contact sheet (1–8, default 4).
endRange end.
everynumberOne frame every N seconds.
every_framebooleanEvery original frame, with real timestamps (variable frame rate safe).
fpsnumberFrames per second over the range.
inlineintegerSheets to show inline (default 2).
occurrenceintegerWhich occurrence of `around`.
paddingnumberSeconds before and after `around` (default 1.5).
rowsintegerRows of frames on each sheet (1–8, default 4); more frames go to further sheets.
startRange start: seconds (12.5) or M:SS(.mmm).
widthintegerFrame width in pixels (default 320; 240 with 6+ columns).
wordsbooleanPut the words spoken at each frame under it.

style Measure the motion style

For replicating a look: finds cuts and gradual transitions (dissolves, fades and dips through black or white, wipes) and the shots between them, measures each shot's palette over its own frames (OKLab, weighted by screen time), reads how much the picture changes on every frame, and lists the moves with their duration in frames and easing family. Writes motion-spec.json (machine-readable, with word and cut anchors), STYLE.md, TIMELINE.md and ANALYSIS.md to the workspace. Then look at the moves with `frames` every_frame, and complete the typography, systems and 'why it works' sections in those f…

ParameterTypeDescription
source *stringThe video: a link (YouTube and other sites), a path to a local file, or `inbox` for the newest file in the inbox folder.
endRange end (default the end, at most 180 s at a time).
startRange start (default 0).

track Track an element and fit its exact curve

After `style`, for the moves that matter: follows one element through a window at the full frame rate (subpixel template matching) and fits the exact timing of each property that moves (x, y, scale, opacity): a cubic-bezier, a spring (stiffness, damping, mass) when it overshoots or swings, linear or steps, with the fit error, duration in frames and delay. Window: `move` (a style move number) or `start`/`end`; element: `auto` (the biggest moving region) or a box at time `at`. Writes tracks.json, TRACK.md and an SVG of the curves, and adds the tracked move to motion-spec.json, so `export` uses t…

ParameterTypeDescription
source *stringThe video: a link (YouTube and other sites), a path to a local file, or `inbox` for the newest file in the inbox folder.
atTime at which the box is drawn (default the window start).
element`auto`, or the element's box {x, y, w, h} (top-left and size) in source pixels, or in fractions of the frame when every value is at most 1.
endWindow end (at most 15 s after start).
moveintegerA move from `style` (1 = the first in motion-spec.json); sets the window with some rest around it.
startWindow start (default: just before the style move).

audio Analyze the sound

Sound design and music: loudness (LUFS) over time, silences, onsets (hits, impacts, clicks), tempo and beat grid, and how many cuts land on a beat (when `style` ran first). Returns a spectrogram picture: rising sweeps are risers or whooshes, vertical lines are hits, horizontal bands are tones and music beds. Writes audio-*.json and adds beats to motion-spec.json.

ParameterTypeDescription
source *stringThe video: a link (YouTube and other sites), a path to a local file, or `inbox` for the newest file in the inbox folder.
endRange end (default the end, at most 10 minutes at a time).
startRange start: seconds (12.5) or M:SS(.mmm) (default 0).

export Starter project from the reference

Turns the reference's motion-spec.json into a starter project for a renderer: `hyperframes` (index.html + one scene per shot with GSAP eases), `remotion` (Sequences per shot with Easing.bezier), `css` (tokens, keyframes and a preview page), `after-effects` (framelens-reference.jsx: run it in After Effects to build the comp with eased keyframes and cut/beat markers), `lottie` (reference.json with solids, placeholder shapes and bezier easing) or `hypit` (references/<slug>/ANALYSIS.md, TIMELINE.md and transcript.json plus HANDOFF.md for the Hypit video tool, filled from the workspace notes). It c…

ParameterTypeDescription
source *stringThe video: a link (YouTube and other sites), a path to a local file, or `inbox` for the newest file in the inbox folder.
target *stringRenderer to write for.

compare Compare a render with the reference

Checks how close a render is to the reference: duration, cuts matched within 3 frames (missing, extra, late), palette distance, and picture similarity over time with the least similar moments shown side by side. Writes COMPARE.md to the reference's workspace. Fix what it names, render again and compare once more.

ParameterTypeDescription
reference *stringThe reference video.
render *stringPath to the rendered video to check.

boundaries Find where the picture changes

Samples the picture and scores how much each sample differs from the previous one. High scores are cut or flash candidates (not editorial labels: check them with `frames` every_frame around each). Also reports how dynamic the video is overall.

ParameterTypeDescription
source *stringThe video: a link (YouTube and other sites), a path to a local file, or `inbox` for the newest file in the inbox folder.
endRange end (default the end of the video).
ratenumberSamples per second; 10 or more to time cuts precisely.
startRange start: seconds (12.5) or M:SS(.mmm) (default 0).
thresholdnumberScore from which a change is listed (0–1).

web Read a web page's animations

For animations on a live website: opens the page in a headless Chrome or Edge and reads every animation exactly (CSS animations and transitions, Web Animations, Motion, and GSAP when the page exposes it): target, duration, delay, easing curve and keyframes, including ones triggered while scrolling; they are recorded from the first frame, so motion that ends while the page loads counts too. Also reads the real fonts, sizes and colours, takes views down the page, and films the opening motion frame by frame. Writes motion-spec.json and STYLE.md (all values `measured`), so `export` works on it. Ne…

ParameterTypeDescription
url *stringThe page address (http or https); or `inbox`, or the path of a .framelens.json page reading saved by the Frame Lens browser extension.

exact Exact animation data (Lottie, Rive, Figma)

Reads the animation parameters straight from the source file instead of measuring pixels: a Lottie file (.json or .lottie, a path or an http(s) link such as lottie.host), a Rive file (.riv, a path or a direct link to the .riv; rive.app pages are not read) or a Figma prototype link with node-id. Reports the composition, every move with its exact cubic-bezier curve, duration and values, the palette, fonts and text, and lists what could not be evaluated (expressions). Writes motion-spec.json and STYLE.md (plus RIVE.md with artboards, animations and state machines for Rive) to the workspace in the…

ParameterTypeDescription
exportstringAlso write a starter project for this renderer.
figma_jsonFigma JSON: a /v1/files/:key/nodes response or get_motion_context output. Use instead of `source`.
sourcestringPath or http(s) link to a Lottie .json/.lottie or a Rive .riv file, or a figma.com link with node-id.

summarize_youtube_video Summarize a YouTube video

Summarizes a YouTube video from its frames and audio (sees slides, code, UI and on-screen text, not just captions). Use start/end for one part of the video.

ParameterTypeDescription
youtube_url *stringYouTube video link (watch, youtu.be, shorts, live or embed) or the 11-character video ID.
detailstring"low" sends frames at low resolution. It saves tokens only on Gemini 2.5 models; Gemini 3 and newer treat it like the default.
endAnalyze up to this point. Same formats as `start`.
response_languagestringLanguage of the answer, e.g. "Russian". By default the language of the question, otherwise English.
startAnalyze from this point on. Seconds (90), MM:SS (1:30) or H:MM:SS (1:02:03).
summary_lengthstringshort: 3-5 sentences; medium: overview + timestamped key points; long: detailed sections with visuals.

ask_about_youtube_video Ask about a YouTube video

Answers a question about a YouTube video using its frames and audio, with timestamps as evidence. Ask specific questions (what is on the slide at 4:10, which settings are clicked, what numbers are shown). Without a question it returns a detailed description.

ParameterTypeDescription
youtube_url *stringYouTube video link (watch, youtu.be, shorts, live or embed) or the 11-character video ID.
detailstring"low" sends frames at low resolution. It saves tokens only on Gemini 2.5 models; Gemini 3 and newer treat it like the default.
endAnalyze up to this point. Same formats as `start`.
questionstringThe question. Omit it to get a detailed description of the video.
response_languagestringLanguage of the answer, e.g. "Russian". By default the language of the question, otherwise English.
startAnalyze from this point on. Seconds (90), MM:SS (1:30) or H:MM:SS (1:02:03).

extract_key_moments Extract key moments

Lists the most important moments of a YouTube video with exact timestamps, titles, descriptions and links that open the video at each moment.

ParameterTypeDescription
youtube_url *stringYouTube video link (watch, youtu.be, shorts, live or embed) or the 11-character video ID.
detailstring"low" sends frames at low resolution. It saves tokens only on Gemini 2.5 models; Gemini 3 and newer treat it like the default.
endAnalyze up to this point. Same formats as `start`.
number_of_momentsintegerHow many moments to return (1-50, default 5).
response_languagestringLanguage of the answer, e.g. "Russian". By default the language of the question, otherwise English.
startAnalyze from this point on. Seconds (90), MM:SS (1:30) or H:MM:SS (1:02:03).

get_video_transcript Transcribe a YouTube video

Timestamped transcript of what is said in a YouTube video, with speaker labels, plus (optionally) the meaningful text shown on screen. Made by Gemini from the audio and frames, so it works without captions. For videos longer than about 30 minutes, request parts with start/end.

ParameterTypeDescription
youtube_url *stringYouTube video link (watch, youtu.be, shorts, live or embed) or the 11-character video ID.
detailstring"low" sends frames at low resolution. It saves tokens only on Gemini 2.5 models; Gemini 3 and newer treat it like the default.
endAnalyze up to this point. Same formats as `start`.
include_on_screen_textbooleanAlso list text shown on screen (slides, titles, code).
startAnalyze from this point on. Seconds (90), MM:SS (1:30) or H:MM:SS (1:02:03).

list_supported_models List Gemini models

Lists the Gemini models available to the configured API key and marks the one in use. Useful after a model error.