Apply Style
node_apply_styleLink a Figma node to a shared library style by providing the style ID and type, with node name verification for accurate application.
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 | |
| nodeName | Yes | Name of the node to verify against | |
| styleId | Yes | The ID of the style to apply | |
| styleType | Yes | Type of style to apply (target property) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Whether the style was applied successfully | |
| name | No | Name of the modified node |