adjust_brightness_contrast
Adjust a layer's brightness and contrast by setting values from -127 to +127 to correct exposure and tonal range. Target a specific image and layer or use the active layer.
Instructions
Adjust brightness and contrast of a layer.
Parameters:
brightness: -127 to +127 (default 0)
contrast: -127 to +127 (default 0)
image_index: Target image index (default 0)
layer_name: 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": "adjust_brightness_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contrast | No | ||
| brightness | No | ||
| layer_name | No | ||
| image_index | No |