Get Figma file
get_fileRetrieve a Figma file's JSON structure by file key or URL, with configurable depth and payload modes to control response size.
Instructions
GET /v1/files/{key} — file JSON. depth defaults to 2. mode=trim|summary|full shrinks node payloads (see README).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Node ids, comma-separated or as an array. URL form 1-2 is normalized to 1:2. | |
| file | Yes | Figma file key or URL (figma.com/design/... or figma.com/file/...) | |
| mode | No | Payload size: summary = id/name/type/layout/text only; trim = drop noisy keys (prototypeDevice, styleOverrideTable, interactions, …); full = raw REST JSON. Default trim. | |
| depth | No | Node levels to include. Default 2. | |
| version | No | Optional version id from get_file_versions. | |
| geometry | No | Optional geometry mode, e.g. paths. |