Skip to main content
Glama

Export Figma Assets

export_assets
Read-onlyIdempotent

Export 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

NameRequiredDescriptionDefault
scaleNoRender scale 0.01–4 (default: 1, ignored for SVG)
formatNoExport format (default: 'svg')svg
node_idsNoSpecific node IDs to export. If omitted, exports all components.
page_nameNoFilter components to a specific page
inline_svgNoIf true and format is 'svg', fetch and return SVG content inline
figma_file_keyYesThe Figma file key (from the URL: figma.com/design/{THIS_PART}/...)
component_namesNoFilter components by name (alternative to node_ids).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, openWorld, so the safety profile is covered; the description adds real context beyond that: rendering happens through the Figma Image API, scale is ignored for SVG, and inline_svg is only meaningful with format 'svg'. It omits operational traits an agent would want, such as API rate limits, failure behavior for invalid node IDs, or handling of very large exports.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence and the Returns/Examples sections are well front-loaded and earn their place, but the seven-line Args block duplicates descriptions already present at 100% coverage in the input schema. Roughly a third of the text is redundant for an agent that can read the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description compensates with a Returns section describing JSON asset URLs plus optional inline SVG content, and all seven parameters are explained. Missing only edge-case behavior (invalid node IDs, large-batch limits, whether results are paginated), which keeps it below 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The Args block largely restates the schema text verbatim, and the most useful extra meaning comes from the examples showing realistic values (scale: 2, page_name: 'Icons') rather than from new semantic detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Export SVG/PNG/JPG/PDF assets from Figma components') and adds the mechanism ('Renders component nodes as images via the Figma Image API'), which makes it distinguishable in practice from sibling tools like extract_styles or extract_tokens. It never explicitly contrasts itself with those siblings, so it stops short of the top band.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The Examples section maps concrete user intents ('Export all icons as SVG', 'Export Button component as PNG at 2x', 'Get inline SVG for the Logo') onto argument combinations, which is strong when-to-use guidance in practice. There is no statement of when not to use it or which sibling to prefer for adjacent tasks such as reading design context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.