Add spotlight
snipaya_add_spotlightApply a spotlight by dimming everything outside a rectangle or ellipse to highlight a specific screenshot region, with adjustable darkness for all spotlights.
Instructions
Dim everything except "rect" (form rect or ellipse) to draw attention to it. dim (0 to 1) changes the user’s spotlight darkness setting for all spotlights.
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>"
},
"name": "snipaya_add_spotlight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dim | No | ||
| form | No | rect | |
| rect | Yes | A rectangle (top-left corner plus size). Canvas units, or image pixels with relativeTo. | |
| 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). |