get_histogram
Retrieve histogram statistics for a chosen channel of the active layer to analyze tonal distribution, including mean, median, standard deviation, min, max, and pixel counts.
Instructions
Get histogram statistics for a channel of the active layer.
Parameters:
channel: "value" (all; default), "red", "green", "blue", "alpha"
image_index: Target image index (default 0)
Returns: {mean, median, std_dev, min, max, pixels, count}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_histogram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | value | |
| image_index | No |