get_design_context
Extract depth-limited design trees from Figma selections or pages as a token-efficient alternative for large files. Configure traversal depth, detail level, and component deduplication to optimize context retrieval.
Instructions
Get a depth-limited tree of the current selection or page. More token-efficient than get_document for large files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dedupe_components | No | When true, INSTANCE nodes are serialized compactly (mainComponentId + componentProperties + overrides array of differing text/nested content) and unique component definitions are collected once in a top-level componentDefs map. Highly token-efficient for screens with many repeated component instances. | |
| depth | No | How many levels deep to traverse (default 2) | |
| detail | No | Property verbosity: minimal (id/name/type/bounds only), compact (+fills/strokes/opacity), full (everything, default) |