export_pdf
Export a Figma node or current page to a single-page vector PDF file on disk. Ideal for vector output; for raster images, use save_screenshots instead.
Instructions
Export a node (or the current page) to a single-page vector PDF file on disk. Figma's plugin API renders one PDF page per node and cannot paginate a page into one-frame-per-page or merge multiple nodes into a multi-page file. Pass a frame / section / component id for a vector PDF of that node; omit nodeId for the current page (large pages can be slow). For raster output (PNG/JPG) use save_screenshots instead. Returns { nodeId, path, empty? }; path is null if the target is missing or not exportable, and empty:true means it rendered a blank PDF.
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": {
"outPath": "<outPath>"
},
"name": "export_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | Node to export to a one-page PDF (a frame / section / component); omit for the current page | |
| outPath | Yes | File path to write the .pdf to (parent dirs created if missing) |