Add callout
snipaya_add_calloutAdd a speech-bubble callout with text inside a rectangle and a tail pointing at a target, so you can label screenshots; the box grows to fit the text.
Instructions
Add a speech-bubble callout with text in "rect" and a tail pointing at "tail" (defaults to below the box). The box grows to fit the text.
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": {
"rect": "<rect>",
"text": "<text>"
},
"name": "snipaya_add_callout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rect | Yes | A rectangle (top-left corner plus size). Canvas units, or image pixels with relativeTo. | |
| tail | No | A point. Canvas coordinates, or image pixels when relativeTo is set. | |
| text | Yes | ||
| style | No | Optional style. Omitted fields use the user’s current tool style. Brand colors: coral #EC534E, papaya #FE9440. | |
| tabId | No | Target tab id. Defaults to the active tab. | |
| relativeTo | No | Image id from snipaya_get_canvas. When set, all coordinates in this call are pixels of that image as captured (the same pixels you see in snipaya_render of that image). |