Paint: read pixels
paint_inspectQuery canvas pixels for exact colors at points, painted-pixel counts, bounding boxes, and dominant-color histograms in a region, without rendering a preview.
Instructions
Ask exact questions about the picture: colour at points, statistics and bounding box of painted pixels, or a colour histogram of a region. Cheaper than a thumbnail when you only need numbers.
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": {
"canvas": "<canvas>"
},
"name": "paint_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | How many dominant colours to report | |
| layer | No | Inspect one layer instead of the flattened canvas | |
| canvas | Yes | Canvas name. Letters, digits, space, dot, dash, plus; the .png/.paint suffix may be included or omitted. | |
| points | No | [x,y] pairs to read the colour of | |
| region | No | Crop the reply to this rectangle |