Make a contact sheet of a file
make_contact_sheet_of_fileBuild a contact sheet grid of evenly spaced frames from a video file to review a whole clip at a glance or find a moment, with each tile's file time returned.
Instructions
Build one image with a grid of frames taken at even intervals from a video file, and return it as an image so you can see the whole clip at a glance, followed by the time of every tile. Tiles run left to right, top to bottom; times lists their file times in seconds in that order (each tile is taken from the middle of an equal slice of the range). Saved to output_path when given. Use it to find a moment or to review a long clip; use extract_frame_from_file for one frame at full quality. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.
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": {
"path": "<path>"
},
"name": "make_contact_sheet_of_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Analyse up to this file time, in seconds; clamped to the file's length. Must be greater than start. Default: the end of the file. | |
| path | Yes | Absolute path of the media file on this computer. | |
| start | No | Analyse from this file time (seconds from the start of the file). Default 0. | |
| frames | No | Number of tiles, 2-48. Default 12. | |
| columns | No | Tiles per row, 1-12. Default: the square root of frames, rounded up (4 for 12 frames). | |
| overwrite | No | Replace output_path if it already exists. Default false: an existing file makes the tool fail with FILE_EXISTS. | |
| tile_width | No | Width of each tile in pixels, 64-960 (rounded to even). Default 320. The height follows the aspect ratio. | |
| output_path | No | Absolute path (.jpg, .jpeg or .png) to save the sheet to. Omit to only look at it (returned as JPEG). | |
| timeout_seconds | No | Stop ffmpeg and fail with TIMEOUT after this many seconds. Default 300. |