Apply Style
node_apply_styleApply a shared library style to a Figma node by specifying its style ID and type. Targets paint, text, effect, or grid styles for consistent design updates.
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 | The node's current exact name, passed back verbatim from `node_info`. | |
| styleType | Yes | Type of style to apply (target property) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the modified node | |
| error | No | ||
| success | No | Whether the style was applied successfully |