Create text style
figma_create_text_styleCreate a reusable local text style in Figma with font size, line height, letter spacing, case, and paragraph settings, so text stays consistent.
Instructions
A local TEXT style. lineHeight and letterSpacing are STRINGS, as in figma_set_text_properties: "auto", "32" (px) or "150%"; "0.5" or "-2%" — a bare JSON number is no longer accepted here. case (e.g. upper for labels), decoration, paragraph spacing and indent are set on the style too. Change it later in place with figma_update_style. Editors: Design only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case | No | ||
| name | Yes | ||
| weight | No | Font weight as a number ("600") or a Figma style name ("Semi Bold" — Inter uses spaces, not "SemiBold"). | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| fontSize | Yes | Required: a text style with no size is not usable. | |
| decoration | No | ||
| fontFamily | No | Default Inter (create); the style's own family (update). | |
| lineHeight | No | "auto", px ("32") or percent ("150%"). A string, not a number. | |
| description | No | What the style is for — shown in Figma's style picker. | |
| letterSpacing | No | px ("0.5") or percent ("-2%"). A string, not a number. | |
| 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. | |
| paragraphIndent | No | px of first-line indent. | |
| paragraphSpacing | No | px between paragraphs. |