figma_export_json
Export any Figma node's full JSON to a local file and get its path plus a short summary. Choose REST API JSON, a compact resolved tree, or auto fallback for agent workflows.
Instructions
Export the full JSON of a node to a file on disk and return the path plus a short summary. format "rest" = Figma REST API JSON (JSON_REST_V1), "compact" = trimmed tree with resolved style/variable names, "auto" = rest with compact fallback.
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": {
"nodeId": "<nodeId>"
},
"name": "figma_export_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | auto | |
| nodeId | Yes | Node id ("1:2" or "1-2") or a Figma URL containing ?node-id= | |
| outPath | No | Where to write the file; defaults to figma-exports/<file>/<node>.json |