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

NameTypeRequiredDescription
textstringyesText content
xnumberX position in pixels (default: 100)
ynumberY position in pixels (default: 100)
fontSizenumberFont size in points (default: 24)
fontNamestringOptional 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