media_frames
Extract still frames from a video range with source timestamps and crop offsets, optionally adding coordinate grids or a contact sheet for locating and analyzing positions.
Instructions
Still frames of a video range, with index.json (each frame's source time and crop offset).
crop: "W:H:X:Y" in source pixels. grid: draw a labelled grid every N px, labelled in SOURCE video coordinates, so positions read off a frame need no conversion (use 100 for coordinates). sheet: also tile all frames into sheet.png. Read the frames yourself, or pass a few to gemini_analyze_media (more_files). Check positions afterwards with media_overlay.
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": {
"video_path": "<video_path>"
},
"name": "media_frames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| fps | No | ||
| crop | No | ||
| grid | No | ||
| sheet | No | ||
| start | No | ||
| out_dir | No | ||
| session_id | No | ||
| video_path | Yes |