Get design context (REST lite)
get_design_context_liteFetch a compact design snapshot for a Figma node subtree, including layout, text, fills, and component IDs. Optionally attach token summaries for context.
Instructions
REST-only codegen snapshot for a subtree: identity, bbox, best-effort CSS flex from auto-layout, text + typography, fill/stroke summaries, component/instance ids. Optional include_tokens attaches a compact token summary (variables or labeled fallback). Not official MCP get_design_context. Image fills are refs — use get_images or bundle_image_fills for pixels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Figma file key or URL (figma.com/design/... or figma.com/file/...) | |
| depth | No | REST subtree depth. Default 6. | |
| format | No | json (default) slim tree; markdown compact outline; both. | |
| node_id | No | Target node id (1:2 or 1-2). Optional if the file URL already has ?node-id=. | |
| max_nodes | No | Cap mapped nodes so the payload fits a context window. Default 80. | |
| include_tokens | No | If true, attach a compact tokens summary (real variables when Enterprise+file_variables:read, else styles/inferred fallback). Default false so the tree stays small; use get_variable_defs for the full token list. |