figma_metadata
Retrieve Figma node metadata (IDs, names, positions, text, styles, CSS) to find node IDs before editing or extract design tokens for handoff.
Instructions
Structural dump of a node subtree (id, name, type, x/y/w/h, text characters). Omit nodeId for the current page. Cheap way to find node IDs before editing. Pass styles:true to also get fills, strokes, effects, opacity, corner radius, auto-layout and text styles per node — plus bound variables (token names), named styles, and for instances the main component and its property values. css:true adds the CSS Figma computes per node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Include the CSS Figma computes for each node (getCSSAsync) — the design-to-code handoff. Default false. | |
| depth | No | Levels to descend (default 6). | |
| nodeId | No | e.g. "10:59". Omit for the current page. | |
| styles | No | Include fills, strokes, effects, opacity, corner radius, auto-layout and text styles (font, size, line-height, spacing, case) per node. Default false. | |
| maxNodes | No | Node cap (default 400). |