Brightness / contrast
gimp_brightness_contrastAdjust a layer's brightness and contrast from -100 to 100, with 0 leaving values unchanged. Choose destructive pixel edits or a removable GIMP filter.
Instructions
Adjust brightness and contrast of a layer, each from -100 to 100 (0 = unchanged; mapped to GIMP's -1..1). One undo step.
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": {
"item": "<item>"
},
"name": "gimp_brightness_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Item id (layer, group, mask...) e.g. 'item:5@a1b2c3d4'. | |
| contrast | No | ||
| brightness | No | ||
| destructive | No | true: change the layer's pixels (respects the selection). false: add an editable GIMP filter on the layer (pixels untouched, removable, saved in XCF; applied to the whole layer). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| filter | Yes | Id of the editable filter (non-destructive only), verified to exist. | |
| operation | Yes | GEGL/GIMP operation that was applied. | |
| destructive | Yes | True when the layer's pixels were changed. | |
| restricted_to_selection | Yes | True when only the selected area was changed. |