Edit Text
photopea_edit_textEdit 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
| 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) |