Get Figma file overview
figma_get_fileLists a Figma file's pages and top-level frames, sections, and components with IDs and sizes. Start here when a link has no node-id, then pass a frame ID to design, code, or screenshot tools.
Instructions
Lists a file's pages and the top-level frames/sections/components on each, with ids and sizes. Start here when a link has no node-id, then pass a frame's id to figma_get_design / figma_get_code / figma_get_screenshot.
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": {
"url": "<url>"
},
"name": "figma_get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Figma link, e.g. https://www.figma.com/design/<fileKey>/<name>?node-id=12-345 (right-click a layer > Copy link to selection). A bare file key also works. | |
| source | No | Where to read from. auto (default): Figma's viewer protocol (no token, no Dev Mode), then the REST API if FIGMA_TOKEN is set, then the plugin. web/rest/plugin force one. | auto |