Pick color
snipaya_pick_colorReads the pixel color at a given point on the canvas or a captured image and returns it as a #rrggbb hex value, without modifying anything.
Instructions
Read the color of the image pixel at "at" and return it as a #rrggbb hex. Changes nothing.
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": {
"at": "<at>"
},
"name": "snipaya_pick_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | A point. Canvas coordinates, or image pixels when relativeTo is set. | |
| 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). |