Skip to main content
Glama

Modify Selection

photopea_modify_selection

Adjust image selection boundaries by expanding, contracting, or feathering edges by pixel amount, or invert selected areas to modify editing coverage.

Instructions

Modify the current active selection. Requires an existing selection created by make_selection. For expand, contract, and feather, the amount parameter specifies pixels. Invert swaps selected and unselected areas.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesHow to modify the selection: 'expand' grows it, 'contract' shrinks it, 'feather' softens edges, 'invert' swaps selected/unselected
amountNoModification amount in pixels (required for expand, contract, feather; ignored for invert)

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