export_asset_pack
Export a Figma .fig file as a structured asset pack with manifest, images, vectors, node screenshots, and design specs.
Instructions
THE agent packaging tool. Writes a directory with MANIFEST.json, AGENTS.md (MUST NOT invent SVG paths), images/{hash}.ext real binaries, vectors/* true-geometry SVGs, nodes/{id}/node.svg+node.png+design-spec.json. Returns manifest summary + absolute outputDir + policy banner. Never dumps full images as base64. Agents must read/copy files from the pack.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | Optional root node GUID; omit for top-level page frames | |
| filePath | Yes | Path to the .fig file | |
| maxDepth | No | Tree depth for true SVG (default 40) | |
| maxNodes | No | Max root nodes when exporting full doc (default 50) | |
| outputDir | Yes | Directory to write the asset pack into | |
| includeSpecs | No | Write design-spec.json (default true) | |
| includeImages | No | Write images/ binaries (default true) | |
| includeScreens | No | Write node.png via resvg of true SVG (default true) | |
| includeVectors | No | Write vectors/ true SVGs (default true) |