Export / screenshot a node
figma_export_nodeRender a Figma node as PNG, JPG, SVG, or PDF for visual comparison, with controls for scale, size, and save path.
Instructions
Render a node so you can see it — the screenshot to compare against. No nodeId: the one selected layer. Without saveTo, PNG/JPG come back as an image (≤ 5 MB) with its bounds and pixel size, and SVG as markup; an inline PNG/JPG with no scale is held to 1024 px on its longest side (maxSize changes that; capped says it happened; scale asks for an exact size instead). With saveTo, or for PDF, or when larger than 5 MB, the file is written and its path returned. A relative saveTo lands in the export directory; other folders must be listed in BRIDGE_EXPORT_ROOTS. If format is omitted, the saveTo extension decides, else PNG. An animated frame renders at rest: see its motion with figma_export_video, then figma_review_video. Skill: critique (figma_get_guide). For files a codebase ships (presets, original images), use figma_download_assets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Exact pixel scale for PNG/JPG; bypasses the size cap. | |
| format | No | PNG (default), JPG, SVG or PDF. | |
| nodeId | No | The node to render: an id ("12:34") or a Figma link. Default: the one selected layer. | |
| saveTo | No | Write to this file instead of returning the render inline. | |
| maxSize | No | Longest side in pixels for PNG/JPG (never upscales). Default 1024 inline. | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. |