Skip to main content
Glama

Add Text

photopea_add_text

Add text layers to Photopea documents with precise positioning and formatting. Create point text or paragraph text boxes using custom fonts, sizes, colors, and alignment settings.

Instructions

Add a new text layer to the active document at the specified position. The text layer becomes the active layer. Use paragraphBounds to create a text box with word wrapping, or omit for point text. Use load_font to add custom fonts, and list_fonts to find available font names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesText content to display on the layer
xYesX position in pixels from the left edge of the document
yYesY position in pixels from the top edge of the document
fontNoFont PostScript name (e.g. ArialMT, Helvetica-Bold). Use list_fonts to find available names.
sizeNoFont size in points (default varies by document resolution)
colorNoColor as hex string (e.g. #ff0000)
alignmentNoText alignment
boldNoApply faux bold
italicNoApply faux italic
letterSpacingNoLetter tracking/spacing
lineHeightNoLine height (leading)
paragraphBoundsNoParagraph text box bounds

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