apply_style
Apply a local Figma style by name or ID to nodes to set fill, stroke, text, effect, or grid properties in one step.
Instructions
Apply a local style (by name or id) to nodes.
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": {
"nodeIds": "<nodeIds>",
"style": "<style>"
},
"name": "apply_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| style | Yes | Style name or id | |
| target | No | Inferred from the style type when omitted (paint -> fill) | |
| nodeIds | Yes |