figma_get_file_data
Retrieve a Figma file's document tree and node IDs to understand structure or locate components; start with summary verbosity and depth 1 to limit token usage.
Instructions
Get full file structure and document tree. WARNING: Can consume large amounts of tokens. NOT recommended for component descriptions (use figma_get_component instead). Best for understanding file structure or finding component nodeIds. Start with verbosity='summary' and depth=1 for initial exploration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many levels of children to include (default: 1, max: 3). Start with 1 to prevent context exhaustion. Use 0 for full tree only when absolutely necessary. | |
| enrich | No | Set to true when user asks for: file statistics, health metrics, design system audit, or quality analysis. Adds statistics, health scores, and audit summaries. Default: false | |
| fileUrl | No | Figma file URL (e.g., https://figma.com/design/abc123). Auto-detected from WebSocket Desktop Bridge connection. Only required if not connected. | |
| nodeIds | No | Specific node IDs to retrieve (optional) | |
| verbosity | No | Controls payload size: 'summary' (IDs/names/types only, ~90% smaller - RECOMMENDED), 'standard' (essential properties, ~50% smaller), 'full' (everything). Default: summary for token efficiency. | summary |