figma_export_files
Export Figma frames to PNG, JPG, or SVG files on disk and return their paths for docs, PRDs, or attachments. Select nodes by ID or name pattern; files stay in allowed export folders.
Instructions
Export frames from the current Figma page to image files ON DISK and return their paths, not the images. Use it to save mockups for docs, PRDs or attachments; use figma_read screenshot to LOOK at a frame instead. Select nodes with nodeIds, or with namePattern (wildcard * on the node name, e.g. "Workspace/*"; current page only). Files are written only inside the allowed export folders: ./figma-exports (relative to the MCP client's working directory) plus any folders listed in the FIGMA_EXPORT_ROOTS environment variable. Omit outputDir to use ./figma-exports. File names come from the node names (lowercase, ASCII, hyphens) unless fileNames is given; the extension always follows format. An existing file is never replaced unless overwrite is true. At most 50 files per call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "figma_export_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Export scale, 0.1 to 4 (default 2). Ignored for svg. | |
| format | No | Default png. | |
| nodeIds | No | Node IDs to export (e.g. ["1:23"]). Use this or namePattern. | |
| fileNames | No | Optional names, one per node in order, without folders. The extension is added for you. | |
| outputDir | No | Absolute destination folder inside an allowed export folder. Default: ./figma-exports. | |
| overwrite | No | Replace files that already exist (default false). | |
| sessionId | No | Target a specific Figma file/tab. Omit to auto-select. | |
| namePattern | No | Export every frame on the current page whose name matches, e.g. "Workspace/*". Use this or nodeIds. |