set_text_properties
Set typography (font, size, line height, letter spacing, text case, decoration) and layout/overflow (truncation, max lines, auto resize) for a TEXT node.
Instructions
Set a TEXT node's typography and layout/overflow properties. Typography: fontName ({ family, style }), fontSize, lineHeight, letterSpacing, textCase, textDecoration, paragraphSpacing / paragraphIndent (px between / indenting the paragraphs the text splits into at "\n" — the write half of the same fields get_design_context reads) — these load the required fonts first. Layout/overflow: textTruncation (ellipsis), maxLines (line clamp), textAutoResize. Any field may be omitted to leave it unchanged. maxLines applies when textTruncation is ENDING. Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | TEXT node id | |
| fontName | No | Font family + style, e.g. { family: "Inter", style: "Bold" } | |
| fontSize | No | Font size in px | |
| maxLines | No | Max lines before truncation; null = unlimited | |
| textCase | No | ||
| lineHeight | No | Line height: { unit: "AUTO" } or { unit: "PIXELS" | "PERCENT", value } | |
| letterSpacing | No | Letter spacing: { unit: "PIXELS" | "PERCENT", value } | |
| textAutoResize | No | How the text box resizes to its content | |
| textDecoration | No | ||
| textTruncation | No | ENDING truncates with an ellipsis | |
| paragraphIndent | No | First-line indent of each paragraph in px | |
| paragraphSpacing | No | Space between paragraphs in px (paragraphs split at "\n") |