save_screenshots
Export Figma nodes to disk as PNG, JPG, or SVG files. Handles clipped or empty nodes with auto-recovery and blank file fallbacks.
Instructions
Export nodes and write them to disk under outDir: { saved: [{ nodeId, format, path, recovered?, empty? }] }. format is PNG (default) / JPG / SVG; scale applies to raster formats (default 1). path is null for missing or non-exportable nodes. Nodes that are fully clipped or off-canvas (e.g. a carousel's edge items) are auto-recovered at their intrinsic bounds and flagged recovered:true. empty:true means the node genuinely renders nothing even unclipped (hidden / no content) so the file is blank. Files are named after a sanitized node id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Raster scale factor (PNG/JPG), default 1 | |
| format | No | Export format: PNG (default) / JPG / SVG | |
| outDir | Yes | Directory to write files into (created if missing) | |
| nodeIds | Yes | Figma node ids to export |