figma_spec
Retrieve exact per-layer design specifications from Figma—including text, layout, CSS, paint, tokens, and assets—by mapping structure and pulling style facts for any node ID.
Instructions
Exact per-layer text, identity, layout, native CSS, paint, token and asset facts. Copy; never invent. Map structure, then pull style by node id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dedup | No | false (default): inline every layer; true: compact S<n>/repeat refs. | |
| depth | No | Max tree depth (default 12). Use 0 for the requested node itself, complete and without descendants. | |
| phase | No | structure = hierarchy + real content; style = layout/paint/typography detail; all (default) = both. | |
| format | No | tree (default) is readable; yaml/json are lossless canonical adapters. | tree |
| nodeId | Yes | Frame node id, URL-form id, or full Figma URL. | |
| fileKey | No | Target connected file: bare key or Figma URL. | |
| section | No | Optional child layer name from the structure map. Prefer its node id when names repeat. | |
| includeHidden | No | Also list invisible nodes, marked hidden (default false). Useful to understand what a variant toggle would reveal. |