Sample colors
sample_colorsRead pixel colors at specified points from a painting’s composite or a single layer, returning hex, alpha, and HSL values for color matching or inspection.
Instructions
Eyedropper: read colors at points from the composite (or one layer). Returns hex, alpha and HSL.
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": {
"points": "<points>"
},
"name": "sample_colors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | Sample a single layer instead of the composite | |
| points | Yes | ||
| radius | No | Average over a (2r+1)² square |