thumbnail
Extracts a video frame from a clip at a requested time, snapping to a set interval and caching it for repeated requests. Returns a local path that the proofcut web server serves as an image.
Instructions
One filmstrip frame for clip_id, at the source time nearest at.
at snaps to a multiple of interval before anything is extracted, and
the frame is cached under cache/thumbs/ keyed by the clip's media size
and mtime — a repeated ask for a nearby instant is a cache hit. The
result is a path, not the image bytes; proofcut web serves those over
/api/thumb/<clip_id>?at=. It never enters the manifest, so nothing
that renders can reach it (the same wall the preview proxy has).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | Source seconds to pull the frame at. It snaps to a multiple of `interval` first, so a repeated ask for a nearby instant is a cache hit. | |
| path | No | The project directory to act on. Omit it — the usual case — when this server is bound to a project (started as `proofcut -C DIR mcp`, or inside a project; `ping` says which): it then resolves to that one bound project, a relative path resolves against it, and a path outside it is refused by name. Unbound, `path` is the whole address and omitting it refuses rather than guessing. | |
| clip_id | Yes | The clip to pull a frame from. | |
| interval | No | The grid `at` snaps to, in seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||