atomicLayers
photoshop_create_text_layer
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.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| text | string | yes | Text content |
| x | number | — | X position in pixels (default: 100) |
| y | number | — | Y position in pixels (default: 100) |
| fontSize | number | — | Font size in points (default: 24) |
| fontName | string | — | Optional font display or PostScript name (resolved via app.fonts; see photoshop_list_fonts) |
Community recipes
Nothing here yet. Be the first to share one.
Share a recipe