Apply style
figma_apply_style_to_nodeApply local Figma paint, text, effect, or grid styles to nodes by ID or name; set type for fill or stroke so nodes follow the chosen style.
Instructions
Apply a local style (paint, text, effect or grid) by id or by name — the node then follows the style. Give type when a name is shared across kinds, or to apply a paint style as the stroke (default: fill). figma_get_styles lists local styles; a style from a library (not listed there) is applied by the id that figma_get_design_context returns in stylesUsed. For a raw colour use figma_set_fills. Returns per-item results: { updated, items: [{ id, ok, error? }] } — one node failing does not fail the call. Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| nodeIds | Yes | Nodes to change. | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| styleId | No | A style id from figma_get_styles. | |
| styleName | No | Or its exact name, e.g. "Brand/Primary". | |
| idempotencyKey | No | Caller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely. |