Add text
snipaya_add_textAdd a text label at a chosen canvas or image pixel position, supporting multi-line text and optional styling to caption or annotate screenshots.
Instructions
Add a text label with its top-left corner at "at". Supports \n for new lines.
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": {
"text": "<text>",
"at": "<at>"
},
"name": "snipaya_add_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | 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). |