create_layer
Creates and inserts a new layer into a GIMP image, with configurable dimensions, fill color, opacity, blend mode, and stack position.
Instructions
Create and insert a new layer into an image.
Parameters:
name: Layer name (default "New Layer")
width, height: Layer dimensions; defaults to image dimensions
fill: Initial fill — "transparent" (default), "white", "black", or any CSS color
opacity: Layer opacity 0-100 (default 100)
blend_mode: GIMP layer mode name — "NORMAL" (default), "MULTIPLY", "SCREEN", etc.
position: Stack position — -1 = top (default), 0 = bottom
image_index: Target image index (default 0)
Returns: {layer_name, layer_id, width, height, position}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | transparent | |
| name | No | New Layer | |
| width | No | ||
| height | No | ||
| opacity | No | ||
| position | No | ||
| blend_mode | No | NORMAL | |
| image_index | No |