Set layer properties
gimp_set_layer_propertiesRename a GIMP layer or group and change its visibility, opacity, blend mode, or locks without altering pixels. Applies only specified properties and creates one undo step.
Instructions
Rename a layer or group and/or change its visibility, opacity (0-100), blend mode or locks (content, position, visibility, alpha). Only the given properties change. Not destructive: pixels are untouched. 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_set_layer_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| name | No | ||
| opacity | No | ||
| visible | No | ||
| lock_alpha | No | ||
| lock_content | No | ||
| lock_position | No | ||
| lock_visibility | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Offset of the layer's top-left corner in image pixels. | |
| y | Yes | ||
| id | Yes | ||
| kind | Yes | ||
| mask | Yes | ||
| mode | Yes | GIMP layer mode nick, e.g. 'normal', 'multiply'. | |
| name | Yes | Layer name. GIMP keeps names unique within an image ('Title #1'). | |
| locks | Yes | ||
| width | Yes | ||
| height | Yes | ||
| parent | Yes | Id of the parent group, null at the top level. | |
| opacity | Yes | 0-100. | |
| visible | Yes | ||
| children | No | Child layers of a group, top-most first; null for non-groups. | |
| has_alpha | Yes |