get_design_context
Explore large Figma files by retrieving a token-efficient node tree from a given node, selection, or current page. Control depth, detail level, and collapse repeated component instances.
Instructions
Get a depth-limited, token-efficient node tree for exploring large files — prefer this over get_document. Starts from nodeId, else the current selection, else the current page. depth limits child levels (omit or 0 = unlimited). detail is minimal / compact / full. dedupeComponents collapses repeated component instances (children of an already-seen main component are omitted and flagged deduped). A deduped instance still carries textOverrides — the visible text it renders ({ name, characters }) — so per-instance content (card titles, list items, form labels) is available without re-expanding the collapsed subtree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Max child levels to include; omit or 0 for unlimited | |
| detail | No | How much per-node data: minimal / compact (default) / full | |
| nodeId | No | Root node id; omit to use the selection or current page | |
| dedupeComponents | No | Collapse repeated instances of the same main component |