Create text with an installed font
figma_local_fonts_createCreates a Figma text layer using an exact locally installed font, loading the font before the layer appears so agents can add local-font text without uploading font files.
Instructions
Create one text layer directly with an exact local font, loaded before any layer appears. Supply the intended file connection, parent on the current page, name, text, font, size, and position. Returns the created node and revision for subsequent edits. If a response times out, inspect the parent before retrying to avoid a duplicate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Position relative to the parent; auto layout controls position in AUTO mode. | |
| y | Yes | ||
| name | Yes | ||
| color | No | Solid text color; defaults to black. | |
| width | No | ||
| height | No | ||
| opacity | No | ||
| fontName | Yes | Exact installed font from local font search or inspection. Loaded before creating any layer. | |
| fontSize | Yes | ||
| parentId | Yes | Visible, unlocked page, frame, group, component, or section on the current page. Instances are not supported. | |
| characters | Yes | Text to create with one font and style. | |
| lineHeight | No | ||
| connectionId | Yes | Exact connectionId from status for the intended file. | |
| letterSpacing | No | ||
| textAutoResize | No | WIDTH_AND_HEIGHT | |
| paragraphSpacing | No | ||
| layoutPositioning | No | Use ABSOLUTE inside an auto-layout frame to honor x and y. | AUTO |
| textAlignHorizontal | No |