save_screenshots
Exports Figma nodes to PNG, JPG, SVG, or PDF files on disk, enabling batch exports by node ID or target path and returning file metadata instead of image data.
Instructions
Export nodes to files on disk (PNG, JPG, SVG or PDF). Either pass items [{nodeId, path, format?, scale?}] or the shortcut nodeIds + dir (files are named from the sanitized node names, with the id appended on collisions). Paths may be absolute or relative to the server's working directory; parent directories are created. Returns metadata only (path, bytes, pixel size) — never the image data. Per-item errors don't abort the batch.
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": "save_screenshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Output directory for the nodeIds shortcut | |
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| items | No | ||
| scale | No | Default scale for all items (default 1) | |
| format | No | Default format for all items (default PNG) | |
| nodeIds | No | Shortcut: export these nodes into `dir` | |
| maxDimension | No | Max longest side in px for PNG/JPG (default 4096) | |
| useAbsoluteBounds | No |