Skip to main content
Glama

Make Selection

photopea_make_selection

Create pixel selections in Photopea documents to isolate editing areas. Select the full canvas or define rectangular and elliptical regions with precise bounds and optional feathering.

Instructions

Create a pixel selection region in the active document. After creating a selection, use fill_selection to fill it with color, or clear_selection to deselect. Use type 'all' to select the entire canvas, or 'rect'/'ellipse' with bounds for a specific region.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesSelection shape: 'all' selects the entire canvas, 'rect' creates a rectangle, 'ellipse' creates an ellipse
boundsNoSelection region bounds in pixels. Required for 'rect' and 'ellipse' types, ignored for 'all'.
featherNoSoft edge radius in pixels for anti-aliased selection edges (0 = hard edge)

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