Apply Style
node_apply_styleApply a shared library style to a Figma node by specifying its style ID and type. Targets paint, text, effect, or grid styles for consistent design updates.
Instructions
Link a node to a shared library style (paint/text/effect/grid) by styleId. Use the raw node_set_* setters for ad-hoc values not backed by a style.
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>",
"nodeName": "<nodeName>",
"styleId": "<styleId>",
"styleType": "<styleType>"
},
"name": "node_apply_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to apply style to | |
| styleId | Yes | The ID of the style to apply | |
| nodeName | Yes | The node's current exact name, passed back verbatim from `node_info`. | |
| styleType | Yes | Type of style to apply (target property) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the modified node | |
| error | No | ||
| success | No | Whether the style was applied successfully |