create_text
Creates a Figma text node at specified coordinates with text, font, color, alignment, and parent options, defaulting to Inter unless a font family is set.
Instructions
Create a text node, in Inter unless fontFamily sets the font
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x": "<x>",
"y": "<y>",
"text": "<text>"
},
"name": "create_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position | |
| y | Yes | Y position | |
| name | No | Semantic layer name for the text node | |
| text | Yes | Text content | |
| width | No | Fixed width: the text wraps and its height follows | |
| fontSize | No | Font size (default: 14) | |
| parentId | No | Optional parent node ID to append the text to | |
| fontColor | No | Font color in RGBA format | |
| fontStyle | No | The family's own style name, e.g. "Regular", "Semibold", "Bold" for SF Pro | |
| fontFamily | No | Any font installed for Figma, e.g. "SF Pro", "SF Pro Rounded", "New York" | |
| fontWeight | No | Font weight, e.g. 400 Regular, 700 Bold (default 400); ignored when fontStyle is set | |
| lineHeight | No | Line height in pixels | |
| letterSpacing | No | Letter spacing in pixels | |
| textAlignVertical | No | ||
| textAlignHorizontal | No |