capture_shots
Detect video shot boundaries, get start and end times, and extract first, middle, or last frames labeled by shot and timestamp for composing contact sheets.
Instructions
Detect the shots in a video: where each starts and ends and how long it lasts, with first, middle or last frames from each, labeled by shot and real timestamp. Compose the frames with capture_compose and this job_id. Finds hard cuts well; lower scene_threshold if dissolves are missed. Decodes the whole range, so 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>"
},
"name": "capture_shots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End of the range to process: seconds, MM:SS or HH:MM:SS | |
| 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) | |
| frame_positions | No | Frames to capture from each shot. Empty for the shot list only | |
| scene_threshold | No | Scene change score that counts as a cut, 0.01-1. Lower finds more cuts | |
| min_shot_seconds | No | Shortest shot to keep. Closer cuts are ignored |