Fill
gimp_fillFill a layer or layer mask with a solid color, either across the entire layer or only within the active selection, creating a destructive pixel change in one undo step.
Instructions
Fill a layer (or layer mask) with a solid color. area='selection' fills the selected part only (EMPTY_SELECTION if nothing is selected); area='layer' fills the whole layer and ignores (but keeps) the selection. Destructive for the pixels it covers. 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>",
"color": "<color>"
},
"name": "gimp_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | selection | |
| item | Yes | Item id (layer, group, mask...) e.g. 'item:5@a1b2c3d4'. | |
| mode | No | GIMP layer mode nick, e.g. normal, multiply, screen, overlay, soft-light, hard-light, addition, subtract, difference, darken-only, lighten-only, hue, saturation, color, dodge, burn, pass-through (groups). Invalid names are refused with the list of allowed ones. | normal |
| color | Yes | sRGB color as '#rrggbb', '#rrggbbaa', '#rgb' or one of: white, black, red, green, blue, transparent | |
| opacity | No | 0-100. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| changed | Yes | False when the painted area does not intersect the layer. | |
| affected | Yes | Image-space box of the pixels that may have changed. |