monorail_export
Export individual Figma nodes such as vectors, components, or icons as SVG or PNG. Use SVG for scalable assets or PNG with a chosen scale for raster needs.
Instructions
Export any Figma node as SVG or PNG. Unlike monorail_screenshot (slide-level PNG), this targets individual nodes (vectors, components, icons) and supports SVG output. Returns SVG as a UTF-8 string or PNG as base64.
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": "monorail_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Export scale factor (default: 1). Only affects PNG output. | |
| format | No | Export format (default: SVG). | |
| node_id | No | Figma node ID to export. If omitted, exports the currently selected node. | |
| timeout_ms | No | The most this call may take, in ms (default 90000; 1000–600000): waiting its turn behind other sessions' requests plus the plugin's own work. A big node can take longer. The call returns by about timeout_ms + 2s (+ up to 3s if the proxy link is reconnecting), with an error naming the limit that ran out. While it runs, other sessions' requests queue behind it. |