measure_saturation
Quantify colour saturation of bright subject pixels in a colour view. Returns median, 90th/99th percentiles, maximum, and count for pixels above a luminance threshold.
Instructions
Measure HSV saturation, (max - min) / max, of subject pixels of a colour view: every 8th pixel whose luminance is above the luminance of the channel medians + 5 x (median |luminance - that| on a 32 px grid). Returns JSON: median, p90, p99, max, subject_pixel_count. A mono view is an error. luminance is 0.2126R + 0.7152G + 0.0722B.
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": {
"view_id": "<view_id>"
},
"name": "measure_saturation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view_id | Yes | Colour view to measure |