Get Figma File
get_figma_fileRead-only
Fetch the document tree of any Figma file by its key. Control the depth of nodes retrieved to manage response size.
Instructions
Get a Figma file's document tree via the REST API. Reads any file by key (no need to open it in Figma). Keep depth low (default 2) to avoid huge responses. Requires FIGMA_TOKEN.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileKey | Yes | The Figma file key (from the file URL) | |
| depth | No | Tree depth to fetch; defaults to 2 |