capture_extract_and_compose
Extract video frames and compose them into grid sheets in one operation, including URL downloads, returning frame and sheet paths for analysis.
Instructions
Extract frames from a video and compose them into grid sheets in one operation. Downloads URLs via yt-dlp automatically. Returns both frame and sheet file paths. For long videos, pass async: true and poll capture_job_status.
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": {
"source": "<source>",
"mode": "<mode>"
},
"name": "capture_extract_and_compose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End of the range to process: seconds, MM:SS or HH:MM:SS | |
| fps | No | Frames per second to sample, 0.001-30. Fractions are allowed | |
| mode | Yes | Grid mode: 1 (single/overlay-only), 4 (2x2), 16 (4x4) | |
| async | No | Return a job immediately instead of waiting for the result | |
| start | No | Start of the range to process: seconds, MM:SS or HH:MM:SS | |
| width | No | Custom width in pixels (only with preset=custom) | |
| format | No | Output format (only with preset=custom) | |
| preset | No | Quality preset: llm (1024px JPEG 80%), high (original PNG), custom | llm |
| source | Yes | Video file path or URL | |
| quality | No | JPEG quality 1-100 (only with preset=custom) | |
| every_seconds | No | Sample one frame every N seconds, instead of fps | |
| max_sheet_edge | No | Longest grid sheet edge in pixels; frames shrink to fit. 0 = no limit. Defaults to MAX_SHEET_EDGE for the llm preset, no limit otherwise | |
| overlay_timestamp | No | Overlay the frame's real timestamp on each cell | |
| overlay_frame_number | No | Overlay frame number on each cell |