batch_annotate
Apply multiple annotations to an image in a single request by providing a JSON array of specs for boxes, arrows, text, callouts, and other shapes.
Instructions
Apply multiple annotations in a single call.
Pass a JSON array of annotation specs. Each annotation follows the same format as the annotate() tool.
Example: [ {"type": "box", "position": "top-left", "width": 200, "height": 100, "color": "blue"}, {"type": "text", "position": "top-left", "text": "Header Area"}, {"type": "arrow", "position": "center-left", "end_position": "center-right", "color": "green"}, {"type": "callout", "position": "bottom-right", "text": "Click here"} ]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_id | Yes | ID of the image to annotate | |
| annotations | Yes | JSON array of annotations. Each object has: - type: "box"|"circle"|"arrow"|"text"|"highlight"|"line"|"callout" - position: "top-left", "center", "50%,30%", or "100,200" - Optional: text, width, height, radius, end_position, color, line_width, font_size Example: [{"type":"box","position":"top-left","width":100,"height":50,"color":"blue"},{"type":"text","position":"center","text":"Hello"}] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Status message | |
| image_id | Yes | Image ID that was annotated |