Skip to main content
Glama

Edit Text

photopea_edit_text

Edit text layers in Photopea images by updating content, typography, colors, and spacing. Target specific layers by name or index to modify properties while keeping others unchanged.

Instructions

Modify the content or style of an existing text layer. Only specified properties are changed — omit parameters to keep their current values. Use get_layers to find text layer names if needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesLayer name (string) or index (number)
contentNoNew text content to replace existing text
fontNoNew font PostScript name (use list_fonts to find available names)
sizeNoNew font size in points
colorNoColor as hex string (e.g. #ff0000)
alignmentNoText alignment
letterSpacingNoLetter tracking/spacing
lineHeightNoLine height (leading)

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