save_node_assets
Write a Figma node's true-geometry SVG and PNG binaries to an output directory. Returns paths of written assets.
Instructions
Write REAL image binaries + true-geometry SVG + PNG for a node to outputDir. Returns written paths only. Prefer export_asset_pack for full agent packs with AGENTS.md policy.
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": {
"filePath": "<filePath>",
"nodeId": "<nodeId>",
"outputDir": "<outputDir>"
},
"name": "save_node_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | GUID sessionID:localID | |
| filePath | Yes | Path to the .fig file | |
| writePng | No | Also render node PNG from true SVG (default true) | |
| outputDir | Yes | Directory to write assets into |