Export assets
export_assetsExports SVG icons and original image assets from a Figma target into a folder, deduplicates files, and maps each file to its layer or source hash. Use as:"svg" or as:"png" to export target layers.
Instructions
Writes the icons (SVG) and images (original files) used inside the target to a folder, deduplicated, and lists which file belongs to which layer / src hash. as:"svg"|"png" exports the target layers themselves instead.
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": "export_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | auto (default): every svg graphic + image fill inside the target. | |
| dir | No | Output folder (default "figma-assets" in the working directory). | |
| file | No | Which open Figma file (name or key) when several are connected. Default: the most recently active. | |
| scale | No | PNG scale for as:"png" (default 2). | |
| target | No | Figma URL, node id(s) like "12:34" (comma-separated), or omit for the current selection in Figma. | |
| current_color | No | Replace the single colour of monochrome SVG icons with currentColor (default false). |