Export Figma Assets
export_assetsExport Figma components as SVG, PNG, JPG, or PDF by node ID, component name, or page; optionally return inline SVG content for direct use.
Instructions
Export SVG/PNG/JPG/PDF assets from Figma components.
Renders component nodes as images via the Figma Image API. Can export specific nodes by ID, filter by component name or page, and optionally fetch SVG content inline.
Args:
figma_file_key (string): The Figma file key from the URL
node_ids (string[], optional): Specific node IDs to export
component_names (string[], optional): Filter components by name
format ('svg' | 'png' | 'jpg' | 'pdf'): Export format (default: 'svg')
scale (number, optional): Render scale 0.01–4 (default: 1, ignored for SVG)
page_name (string, optional): Filter to a specific page
inline_svg (boolean, optional): Fetch SVG content inline (default: false)
Returns: JSON with asset URLs (and optional inline SVG content) for each exported component.
Examples:
"Export all icons as SVG" → export_assets with format: "svg", page_name: "Icons"
"Export Button component as PNG at 2x" → export_assets with component_names: ["Button"], format: "png", scale: 2
"Get inline SVG for the Logo" → export_assets with component_names: ["Logo"], inline_svg: true
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": {
"figma_file_key": "<figma_file_key>"
},
"name": "export_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Render scale 0.01–4 (default: 1, ignored for SVG) | |
| format | No | Export format (default: 'svg') | svg |
| node_ids | No | Specific node IDs to export. If omitted, exports all components. | |
| page_name | No | Filter components to a specific page | |
| inline_svg | No | If true and format is 'svg', fetch and return SVG content inline | |
| figma_file_key | Yes | The Figma file key (from the URL: figma.com/design/{THIS_PART}/...) | |
| component_names | No | Filter components by name (alternative to node_ids). |