Download icons, images and renders
figma_download_assetsDownloads a Figma design's icons, illustrations, and image fills as SVG or original formats to a local folder. Also renders specific layers to PNG, JPG, SVG, or PDF at custom scales for direct use in code.
Instructions
Downloads a design's assets to a folder:
auto_detect (default on): finds icons/illustrations (vector-only layers) in the node and saves them as SVG, and saves images used as fills in their original format (png/jpg/webp/gif).
nodes: explicit layers to render, each as png/jpg/svg/pdf at a scale (e.g. a logo at 2x). Identical files are saved once. Returns the list of written files with the node each came from, so code can reference them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "figma_download_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Output folder (relative to the server's working directory, or absolute) | figma-assets |
| url | Yes | Figma link, e.g. https://www.figma.com/design/<fileKey>/<name>?node-id=12-345 (right-click a layer > Copy link to selection). A bare file key also works. | |
| nodes | No | ||
| source | No | Where to read from. auto (default): Figma's viewer protocol (no token, no Dev Mode), then the REST API if FIGMA_TOKEN is set, then the plugin. web/rest/plugin force one. | auto |
| node_id | No | Node id to use instead of the one in the link, e.g. "12:345", "12-345", or an instance sublayer "I12:345;67:89". | |
| png_scale | No | Default scale for png/jpg renders | |
| auto_detect | No | ||
| include_image_fills | No |