Apply a style to a layer
figma_apply_styleApply a local Figma style to a layer as its fill, stroke, text, or effect style by specifying the target node and style IDs.
Instructions
Applies a local style to a layer as its fill, stroke, text or effect 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": {
"node_id": "<node_id>",
"style_id": "<style_id>"
},
"name": "figma_apply_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Figma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file. | |
| kind | No | fill | |
| node_id | Yes | Node id, e.g. "12:345" (link form "12-345" also accepted) | |
| style_id | Yes |