Skip to main content
Glama

Add Layer

photopea_add_layer

Add an empty layer to the active document to enable drawing and editing operations. Configure the layer name, opacity, and blend mode before applying fills, gradients, or effects.

Instructions

Add a new empty layer to the active document. The new layer becomes the active layer. Use this before operations that draw onto a layer, such as fill_selection or add_gradient.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoDisplay name for the new layer in the layers panel
opacityNoLayer opacity percentage (0 = fully transparent, 100 = fully opaque, default 100)
blendModeNoBlend mode (e.g. normal, multiply, screen, overlay, darken, lighten). Defaults to normal.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/attalla1/photopea-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server