set_text_properties
Set typography and layout properties for a TEXT node, including font, size, line height, letter spacing, and text truncation with ellipsis for overflow control.
Instructions
Set a TEXT node's typography and layout/overflow properties. Typography: fontName ({ family, style }), fontSize, lineHeight, letterSpacing, textCase, textDecoration — 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 |