gimp_measure
Replace visual guessing with precise pixel measurements in GIMP: sample RGBA colors, bounding boxes, channel histograms, and dominant colors from the selected layer.
Instructions
Measure pixels instead of guessing from a render. kind='color' (rgba at image x,y), 'bbox' (bounding box of non-transparent pixels), 'histogram' (mean/median/std per channel), 'dominant' (top k colours). Defaults to the selected layer.
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": {
"kind": "<kind>"
},
"name": "gimp_measure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| x | No | ||
| y | No | ||
| kind | Yes | ||
| channels | No | ||
| image_id | No | ||
| layer_id | No | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||