inspect
Checks a video script for missing media, clipped text, script errors, cue drift, off-beat sounds, and physics issues; fails at the configured fail-on level.
Instructions
Problems: missing media and fonts, clipped or overlapping text, NaN, script errors, unused options, cues that drift, sounds off the music's beat, physics bodies that overlap, leave or never settle; fails at the fail-on level.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script": "<script>"
},
"name": "inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| now | No | the wall clock at the video's first frame (Lua: f.now, seconds since 1970): an RFC 3339 time with its zone (2026-11-02T14:05:00Z, 2026-11-02T15:05:00+01:00) or seconds since 1970; preview --live runs on the system clock instead (default: 0, 1970-01-01T00:00:00Z) | |
| set | No | script arguments (Lua: arg.K, a string) that also set props.K (a number when it looks like one); they win over a batch row, which wins over the props file | |
| info | No | list informational findings too | |
| every | No | the distance between checked frames (and every scene's first and last frame and the first frames after each cue and scene start, where a slam overshoots) (default: 0.25s) | |
| media | No | fonts, images and sounds (default: media/ beside the script) | |
| props | No | a JSON object the script reads as the table props (props.title, ...) | |
| range | No | frames a..b (end exclusive), a.., ..b, all, or a scene name; times like 3.2s, 1:05.5, 50%, Intro@1.5s, a cue: drop, drop@0.5s (default: all) | |
| scale | No | output resolution factor, e.g. 0.5 for half resolution (rounded to an even size) | |
| script | Yes | the video script (.lua) | |
| fail_on | No | the findings that fail the check (default: error) | |
| software | No | draw on the CPU instead of the GPU | |
| all_frames | No | check every frame (once before delivering: a motion between the checked frames goes unseen otherwise) |