Apply Style
node_apply_styleApply a shared library style to a Figma node by specifying the node ID and style ID. Supports paint, text, effect, and grid style types.
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.
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 | Name of the node to verify against | |
| styleType | Yes | Type of style to apply (target property) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the modified node | |
| success | Yes | Whether the style was applied successfully |