frame
Render selected video stills from a Lua script to PNG at chosen times, returning images with detected problems.
Instructions
Single frames to PNG with the problems found in them. The PNGs come back as images.
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>",
"specs": "<specs>"
},
"name": "frame"
}
}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 | |
| svg | No | also write each frame as SVG next to its PNG | |
| 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, ...) | |
| scale | No | output resolution factor, e.g. 0.5 for half resolution (rounded to an even size) | |
| specs | Yes | comma-separated times: 120 (frame), 3.2s, 1:05.5, 50%, start, end, Intro, #3, Intro@1.5s, Intro@50%, a cue: drop, drop@0.5s | |
| output | No | a directory for the PNGs, or a .png for one frame (default: none kept) | |
| script | Yes | the video script (.lua) | |
| software | No | draw on the CPU instead of the GPU |