apply_style_to_node
Apply a shared Figma style to a node, selecting the target slot: fill, stroke, effect, grid, or text. Returns confirmation with node ID.
Instructions
Bind a shared style to a node. field selects which slot the style applies to: fill / stroke / effect / grid / text. Returns { ok, nodeId }.
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>",
"styleId": "<styleId>",
"field": "<field>"
},
"name": "apply_style_to_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| nodeId | Yes | Node to apply the style to | |
| styleId | Yes | Style id to bind |