Read the colour of one viewport pixel
browser_pick_color_atCapture the viewport and return the pixel color at a given CSS coordinate. Decodes the screenshot in-process, so no eyedropper or human click is needed.
Instructions
Capture the viewport and return the colour at a CSS-pixel coordinate (x from the left, y from the top). Fully deterministic: it decodes the screenshot in-process, so no eyedropper and no human click is needed. Coordinates are CSS pixels; the screenshot is physical pixels, so devicePixelRatio is applied internally.
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": {
"x": "<x>",
"y": "<y>"
},
"name": "browser_pick_color_at"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X in CSS pixels from the left edge of the viewport | |
| y | Yes | Y in CSS pixels from the top edge of the viewport | |
| context | No | Tab context id (default: the active tab) |