Add magnifier
snipaya_add_magnifierAdds a round magnifying lens at a target point to show a zoomed view of the area around a source point, with adjustable zoom and radius.
Instructions
Add a round magnifying lens at "lens" that shows a zoomed view of the area around "source". radius defaults to about 8% of the short side of the image under the source.
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": {
"source": "<source>",
"lens": "<lens>"
},
"name": "snipaya_add_magnifier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lens | Yes | A point. Canvas coordinates, or image pixels when relativeTo is set. | |
| zoom | 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. | |
| radius | No | ||
| source | Yes | A point. Canvas coordinates, or image pixels when relativeTo is set. | |
| 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). |