Skip to main content
Glama

Add Shape

photopea_add_shape

Add vector shapes to Photopea documents by creating rectangles or ellipses with precise positioning. Define fill colors, strokes, and bounds to generate scalable, non-destructive layers for graphic design.

Instructions

Add a vector shape layer (rectangle or ellipse) to the active document. The shape layer becomes the active layer. Shapes are non-destructive and can be resized with transform_layer without quality loss.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesShape type to create
boundsYesShape bounds
fillColorNoColor as hex string (e.g. #ff0000)
strokeColorNoColor as hex string (e.g. #ff0000)
strokeWidthNoStroke width in pixels
nameNoName for the shape layer

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