batch_analyze_images
Run one vision operation—caption, OCR, object detection/counting, or Q&A—across multiple images in a single call. Isolates per-image failures so the rest of the batch completes.
Instructions
Run one operation across many images in a single call.
The batch form of caption, ocr, detect_objects, count_objects,
dense_region_caption and query_image -- pick which with operation. Use
it when the same question applies to a whole set of images, since it costs
one round trip instead of one per image and loads each model once for the
whole run.
Failures are isolated per image: a missing file or an unreachable URL is reported as its own {"src", "success": false, "error"} entry and the rest of the batch still runs. Results come back in the order given.
For a single image, call the named tool directly -- its arguments are
checked up front rather than depending on operation.
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": {
"srcs": "<srcs>",
"operation": "<operation>"
},
"name": "batch_analyze_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| srcs | Yes | File paths or URLs of the images to process. | |
| question | No | Required when operation is 'query'. | |
| operation | Yes | One of: 'caption', 'ocr', 'detect', 'count', 'dense_caption', 'query'. Use 'query' (with `question`) rather than 'ocr' for watermarks, logos, signage, or stylized/cursive text -- 'ocr' misreads that kind of text confidently. Use 'count' (with `object_name`) rather than 'detect' for 'how many' -- 'detect' returns regions, which are not a tally. | |
| object_name | No | Required when operation is 'detect' or 'count'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |