export_frames_to_disk
Bulk-export Figma frames as PNG, JPG, SVG, or PDF to local disk using node IDs or a page ID, requiring a FIGMA_TOKEN.
Instructions
Bulk-export frames from a Figma file to local disk via the REST API (requires FIGMA_TOKEN). Pass nodeIds, or pass pageId to export all top-level frames on a page. Renders PNG/JPG/SVG/PDF into a folder inside the figma-write-bridge repo.
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": {
"fileKey": "<fileKey>",
"localPath": "<localPath>"
},
"name": "export_frames_to_disk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| format | No | ||
| pageId | No | ||
| fileKey | Yes | ||
| nodeIds | No | ||
| localPath | Yes | ||
| fileNamePrefix | No |