rest_get_file
Retrieve complete Figma file data—metadata, version history, components, styles, and document tree—via REST API for design analysis and automation.
Instructions
Headless read of full Figma file metadata, version history, components, styles, and document tree from Figma Cloud via REST API (requires FIGMA_ACCESS_TOKEN)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Hierarchy depth limit (default: 2 to preserve LLM context) | |
| fileKey | Yes | Figma file key from URL (e.g., 'a1b2c3d4' in figma.com/design/a1b2c3d4/...) |