figma_get_file_data
Retrieve the document tree and structure of an open Figma file without requiring an API token. Accepts fileKey or Figma URL for targeting specific files.
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 |
|---|---|---|---|
| debug | No | Bypass cache and include _responseGuard fields. | |
| depth | No | ||
| fileKey | No | Target a specific connected file. Use figma_list_connected_files to see available files. | |
| figmaUrl | No | Figma or FigJam file URL; fileKey is extracted from the link for routing. | |
| verbosity | No | summary | |
| outputHint | No | ||
| includeLayout | No | ||
| includeVisual | No | ||
| includeCodeReady | No | ||
| includeTypography | No |