create_text
Add styled text to a Figma canvas or container with auto-calculated line-height and letter-spacing. Emojis are excluded for clean UI copy.
Instructions
Create a styled text element on the Figma canvas or inside a container. Strictly disallows emojis (use 'create_svg_icon' for vector icons). Automatically calculates and applies calibrated proportional leading (line-height) and optical tracking (letter-spacing) according to typographic hierarchy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X coordinate | |
| y | No | Y coordinate | |
| fill | No | Text color in hex, e.g. '#111827' | |
| text | Yes | The text content to display (must NOT contain emojis; use clean UI copy) | |
| width | No | Optional fixed width (auto-height wrapping) | |
| fontSize | No | Font size in pixels (defaults to 16) | |
| parentId | No | Parent Frame node ID | |
| fontFamily | No | Font family (defaults to 'Inter') | |
| fontWeight | No | Font weight: 'Regular', 'Medium', 'Bold' |