figma_get_file_data
Obtain the document structure from any open Figma file using its URL or file key. Customize output depth and detail, with session caching for repeated queries.
Instructions
Get file structure and document tree from the open Figma file. No REST API or token. Use fileKey or figmaUrl to target a specific file when multiple plugins are connected. Defaults to depth=1, verbosity='summary'. Cached 60s per session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| figmaUrl | No | Figma or FigJam file URL; fileKey is extracted from the link for routing. | |
| fileKey | No | Target a specific connected file. Use figma_list_connected_files to see available files. | |
| depth | No | ||
| verbosity | No | summary | |
| includeLayout | No | ||
| includeVisual | No | ||
| includeTypography | No | ||
| includeCodeReady | No | ||
| outputHint | No | ||
| debug | No | Bypass cache and include _responseGuard fields. |