Hue / saturation
gimp_hue_saturationAdjust a GIMP layer's hue, saturation, and lightness across all colors or a selected hue range, with one undo step and optional editable filter output.
Instructions
Rotate hue (degrees, -180..180) and change saturation and lightness (-100..100, 0 = unchanged) of a layer, for all colors or one hue range. 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_hue_saturation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hue | No | ||
| item | Yes | Item id (layer, group, mask...) e.g. 'item:5@a1b2c3d4'. | |
| overlap | No | Blend with neighbouring ranges, 0-100. | |
| hue_range | No | all | |
| lightness | No | ||
| saturation | 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. |