annotate_image
Starts an image annotation session and returns a localhost URL where users draw boxes, points, or polygons, name them, and save; then collect exact pixel coordinates and cropped templates.
Instructions
Open an annotation session for one or more images and return a localhost URL. The user opens that URL and draws boxes (templates), points (click targets) or free-form polygons joined by straight segments, names them, then hits 保存. Then call annotate_wait to collect the result.
source: local file path | data URL | raw base64 | 'screen' (live screen capture) | a list of any of those for a multi-image session. Omit it to capture the screen. resize_to: optional [width, height]; by default the image is NOT resampled, so coordinates always match the original file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "annotate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| source | No | ||
| resize_to | No | ||
| open_browser | No |