get_design_context
Retrieve a depth-limited tree of the current selection or page, optimizing token usage for large files. Supports adjustable detail levels and deduplication of repeated component instances.
Instructions
Get a depth-limited, token-efficient tree of the current selection or page. Use this instead of get_document when exploring large files. Supports detail levels (minimal/compact/full) and dedupe_components for pages heavy with repeated component instances.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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) | |
| 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. |