Skip to main content

Overview

Exports a Figma node as an image in one of the supported formats: PNG, JPG, SVG, or PDF. The exported image is returned as base64-encoded data that can be displayed or saved.

Usage

Parameters

string
required
The ID of the node to export
enum
default:"PNG"
Export format. Supported values:
  • PNG - Portable Network Graphics (default)
  • JPG - JPEG format
  • SVG - Scalable Vector Graphics
  • PDF - Portable Document Format
number
default:"1"
Export scale multiplier. Use higher values (e.g., 2 or 3) for higher resolution exports.Common scale values:
  • 1 - Standard resolution
  • 2 - Retina/2x resolution
  • 3 - 3x resolution for high-DPI displays

Response

The tool returns an image content block with:
  • imageData - Base64-encoded image data
  • mimeType - MIME type corresponding to the format (e.g., image/png, image/jpeg, image/svg+xml, application/pdf)

Format-Specific Notes

PNG

  • Supports transparency
  • Lossless compression
  • Best for UI elements, icons, and designs with sharp edges

JPG

  • No transparency support
  • Lossy compression
  • Best for photographs and complex images with gradients

SVG

  • Vector format (resolution-independent)
  • Scale parameter is ignored
  • Best for scalable graphics and icons
  • Preserves editability

PDF

  • Vector format when possible
  • Preserves layers and structure
  • Best for print-ready exports

Example Workflows

Export for Web (2x Retina)

Export Vector Asset

Export Multiple Sizes