auto_levels
Automatically stretches an image's tonal range to improve contrast, optionally targeting a specific layer by name or image index.
Instructions
Automatically stretch the tonal range of an image (auto levels / auto stretch contrast).
Parameters:
image_index: Index of the target image (default 0)
layer_name: Name of the layer to adjust; defaults to active layer
Returns status dict.
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": "auto_levels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_name | No | ||
| image_index | No |