Plumb · assets
plumb_assetsExport Figma assets through the paired plugin: list available icons and images, then write SVG or PNG files for a whole screen or exact node ids.
Instructions
Export Figma assets — icons as SVG, images as PNG — through the paired plugin. Three modes:
• Default — id or name of a screen → recursive export of every asset in it, written to a local folder.
• List — same + list: true → just the manifest (id, name, format, parentId) of available assets; no files written. Cheap; use first to see what's there.
• Surgical — ids: [...] → export exactly those node ids (one file each, no recursion). Preferred once you know what you need.
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": "plumb_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Screen/node id to scope the export to. | |
| ids | No | Surgical — export exactly these node ids (one each, no recursion). | |
| raw | No | For nodes with IMAGE fills, export the original uploaded bytes (JPG/PNG/GIF/WEBP) via getImageByHash, instead of a 2× rasterised PNG render. Other nodes (icons, vectors) export the same as default. | |
| list | No | Manifest only — return id/name/format/parentId per candidate; no file writes. | |
| name | No | Screen name — resolved against the file. | |
| inline | No | Return asset bytes inline on each row: SVGs as raw markup, bitmaps under 64KB as a data: URI. Useful for dropping SVG icons straight into JSX without re-reading from disk. Files are still written; this is additive. |