photoshop_create_text_layer
Add labels, titles, or typography by creating a new text layer in the active Photoshop document with text, position, font size, and optional font.
Instructions
Create a text layer with content, position, font size, and optional font.
Use when: adding labels, titles, or typography to the design. Do NOT use when: editing existing text — use photoshop_update_text_content.
Returns: layer name, text, position, fontSize, font (when fontName set), context. Use photoshop_list_fonts to discover font names; photoshop_set_text_font to change font later. Preconditions: active document. Side effects: adds text layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position in pixels (default: 100) | |
| y | No | Y position in pixels (default: 100) | |
| text | Yes | Text content | |
| fontName | No | Optional font display or PostScript name (resolved via app.fonts; see photoshop_list_fonts) | |
| fontSize | No | Font size in points (default: 24) | |
| document_id | No | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |