extract_keyframes
Extract representative frames across a video timeline and merge them into a contact-sheet grid with inline base64 so vision models can inspect the whole video at once.
Instructions
Extract multiple representative frames across a video's timeline. In 'montage' mode, merges frames into a single contact-sheet grid image and inlines base64 for vision models to inspect the whole video at once.
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "extract_keyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of representative frames to extract across the video timeline. Default: 6. | |
| layout | No | Output format: 'montage' combines all frames into a single contact-sheet grid image for vision models; 'individual' exports separate frame images. Default: 'montage'. | montage |
| inputPath | Yes | Path to the source video file. | |
| outputPath | Yes | Destination image path (e.g. './keyframes_grid.png' or './frames/frame_%02d.jpg'). | |
| includeBase64 | No | Inline base64 image data in response for vision models. Default: true. |