Add arrow or line
snipaya_add_arrowDraw straight or gently curved arrows and lines between two points on a Snipaya canvas to point at details in screenshots. Ends landing on an image anchor to it.
Instructions
Draw a straight arrow (head at "to") or, with head false, a line. curved true draws a gentle curved arrow. Ends landing on an image are anchored to it.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "snipaya_add_arrow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | A point. Canvas coordinates, or image pixels when relativeTo is set. | |
| from | Yes | A point. Canvas coordinates, or image pixels when relativeTo is set. | |
| head | No | ||
| 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. | |
| curved | No | ||
| 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). |