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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "photopea_edit_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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) | |
| target | Yes | Layer name (string) or index (number) | |
| content | No | New text content to replace existing text | |
| alignment | No | Text alignment | |
| lineHeight | No | Line height (leading) | |
| letterSpacing | No | Letter tracking/spacing |