export_node_to_file
Export a Figma node or slice to a PNG, JPG, SVG, or PDF file on disk so images stay out of the conversation. Provide the node ID and an absolute output path.
Instructions
Export a node or slice to a file on disk (PNG, JPG, SVG or PDF), keeping the image out of the conversation
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": {
"nodeId": "<nodeId>",
"path": "<path>"
},
"name": "export_node_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute output path, including the file name | |
| scale | No | PNG and JPG only; default 1 | |
| format | No | Default PNG | |
| nodeId | Yes | The node or slice to export |