export_node_as_image
Export Figma nodes as PNG, JPG, SVG, PDF, or Motion video (MP4, GIF, WEBM). Save files locally or get a path when payloads exceed MCP result limits.
Instructions
Export a node as an image (PNG, JPG, SVG, or PDF) or as video (MP4, GIF, WEBM) for a top-level frame with Motion. Prefer localPath so bytes are written to disk inside the figma-write-bridge repo instead of returning base64. If the payload would exceed the MCP result cap, the server auto-saves under exports/ and returns the path. Video export is only available in Figma Desktop for animated top-level frames.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Video only. Frames per second. | |
| scale | No | ||
| format | No | PNG | JPG | SVG | PDF | MP4 | GIF | WEBM | |
| nodeId | Yes | ||
| quality | No | Video only. Quality preset, e.g. HIGH. | |
| localPath | No | ||
| loopCount | No | GIF only. Number of loops; omit for infinite. |