Edit Text
photopea_edit_textModify the content or style of an existing text layer in Photopea. Specify only properties to change; omit others to keep current values. Use get_layers to find layer names.
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
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Layer name (string) or index (number) | |
| content | No | New text content to replace existing text | |
| font | No | New font PostScript name (use list_fonts to find available names) | |
| size | No | New font size in points | |
| color | No | Color as hex string (e.g. #ff0000) | |
| alignment | No | Text alignment | |
| letterSpacing | No | Letter tracking/spacing | |
| lineHeight | No | Line height (leading) |