figma_export_to_file
Export Figma nodes to local image files in PNG, JPG, SVG, or PDF format. Configure node ID, file path, scale, and format for direct downloads.
Instructions
Export a Figma node as an image file saved to a local path. Supports PNG, JPG, SVG, and PDF formats. Uses plugin bridge for export (no fileKey needed if plugin is connected). Falls back to REST API if fileKey is provided.
Examples: { nodeId: "1:23", filePath: "~/Desktop/thumbnail.png" } { nodeId: "1:23", filePath: "/Users/me/exports/logo.svg", format: "svg", scale: 3 }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| format | No | png | |
| nodeId | Yes | The node ID to export | |
| fileKey | No | Figma file key. Optional if plugin is connected. | |
| filePath | Yes | Local file path to save to. Supports ~ for home directory. |