Create text
figma_create_textCreate text nodes in Figma frames with configurable content, font, alignment, width for wrapping, and auto-layout sizing.
Instructions
A text node, placed into a frame by parentId. Inside a vertical auto-layout it fills the column and wraps (and follows the column's centre/right alignment unless align is given); elsewhere give width for text that should wrap — text without one stays on a single line and can overflow. The font is loaded with the documented fallback chain; the result names the font used and flags fellBack: true when it is not the one requested. Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | Layer name, e.g. "Title". Default: the text itself. | |
| align | No | ||
| color | No | Default #000000 (in FigJam: #1E1E1E, the board's own text colour). | |
| width | No | Fixed width in px; the text wraps inside it. | |
| sizing | No | How it sizes, as in Figma's panel: { "horizontal": "fill" } to take the parent column's width; "hug" fits content; "fixed" keeps the number. | |
| weight | No | Default Regular (in FigJam: Medium, the board's own default). | |
| content | Yes | The text. Newlines are allowed. | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| fontSize | No | ||
| parentId | No | Defaults to the current page (in Slides: the focused slide). | |
| fontFamily | No | Default Inter. | |
| lineHeight | No | "auto", px ("24" or "24px") or percent ("150%"), as in figma_set_text_properties; above 0. A unitless value is px, never a multiplier. | |
| letterSpacing | No | px ("0.5") or percent ("-1%"), as in figma_set_text_properties. A unitless value is px. | |
| idempotencyKey | No | Caller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely. |