contact_sheet
Tile timestamped video frames into one image so an agent can inspect a whole recording at a glance, evenly spaced or at scene changes; optionally writes a single poster frame.
Instructions
Tile timestamped frames of a video into ONE image, so the agent can see a whole recording in a single look: evenly spaced, or at the scene changes. Returns the image path and the sheet inline. poster: true writes a single representative frame instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'even' spreads frames evenly across the video (default); 'scenes' uses the opening frame plus the strongest scene changes, so static stretches take no tiles. | |
| count | No | How many frames to tile (default 12, max 48). | |
| input | Yes | Path to the source video. | |
| output | No | Optional output .png path. Defaults under SCREENCAST_HOME/frames. | |
| poster | No | Instead of a sheet, write one representative poster frame (ffmpeg's thumbnail filter over 30 candidates spread across the video), e.g. for a video thumbnail. | |
| columns | No | Tiles per row (default: roughly square). | |
| overwrite | No | Allow replacing an existing file at the output path (default false). | |
| tileWidth | No | Width of each tile in px (default 320). | |
| returnImage | No | Also return the sheet inline as an image the model can view directly (default true). | |
| maxImageWidth | No | Downscale the inline image to at most this width (default 1280). | |
| sceneThreshold | No | Mode 'scenes': how much a frame must change to count (default 0.1). |