set_font_size
Change the font size of a selected text node in Figma by specifying node ID and new size in pixels.
Instructions
Set the font size of a text node in Figma
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": {
"nodeId": "<nodeId>",
"fontSize": "<fontSize>"
},
"name": "set_font_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the text node to modify | |
| fontSize | Yes | Font size in pixels |