Skip to main content
Glama

Fill Selection

photopea_fill_selection

Fill the current selection with a solid color using hex codes, opacity levels, and blend modes. Modifies pixel data directly on the active layer.

Instructions

Fill the current selection with a solid color on the active layer. Requires an active selection — use make_selection to create one first. Modifies pixel data on the active layer directly. Use clear_selection afterward to deselect.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorYesColor as hex string (e.g. #ff0000)
opacityNoFill opacity percentage (0 = fully transparent, 100 = fully opaque, default 100)
blendModeNoBlend mode for the fill (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