Download assets
figma_download_assetsWrite Figma node assets and original image fills to disk for code implementation: export presets or a scaled render per node, with deduplicated source images. Re-runs overwrite files.
Instructions
Write a design's ASSETS to disk for implementing it in code: per node, its export presets as the designer set them (format and suffix each), or one render in format at scale when it has none; plus the ORIGINAL bytes of every image fill in its subtree (deduplicated by hash, at most 20 per call, rawImagesTruncated when there were more) — the photo under a hero's headline without the headline baked in. Re-runs overwrite the same files. Paths follow figma_export_node's saveTo rules. To SEE a design use figma_export_node; this one is for files the code ships.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Directory for the files. Defaults to the export directory. | |
| scale | No | Raster scale for those renders, default 2. Ignored for SVG/PDF. | |
| format | No | Render format for nodes with no export presets. Default PNG. | |
| nodeIds | Yes | Nodes (ids or Figma links) whose assets to write. | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| rawImages | No | Also write the original bytes of image fills. Default true. | |
| useExportSettings | No | Use each node's own export presets when it has any. Default true. |