Get Figma file
figma_get_fileRetrieves a Figma file as a document tree of pages, frames, and layers. Start with depth 1 or 2 for large files, then drill into nodes for details.
Instructions
Returns a Figma file as a document tree (pages, frames, layers). Large files return huge payloads — start with depth=1 or depth=2, then drill in with figma_get_file_nodes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_key": "<file_key>"
},
"name": "figma_get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Traverse depth of the returned document tree. 1 = pages only, 2 = pages + top-level children. Default 2. | |
| file_key | Yes | File key from the Figma URL, e.g. https://www.figma.com/design/<FILE_KEY>/Name |