Skip to main content
Glama
figma-bridge-mcp

figma-bridge-mcp

figma_export_files

Export Figma frames to PNG, JPG, or SVG files on disk and return their paths for docs, PRDs, or attachments. Select nodes by ID or name pattern; files stay in allowed export folders.

Instructions

Export frames from the current Figma page to image files ON DISK and return their paths, not the images. Use it to save mockups for docs, PRDs or attachments; use figma_read screenshot to LOOK at a frame instead. Select nodes with nodeIds, or with namePattern (wildcard * on the node name, e.g. "Workspace/*"; current page only). Files are written only inside the allowed export folders: ./figma-exports (relative to the MCP client's working directory) plus any folders listed in the FIGMA_EXPORT_ROOTS environment variable. Omit outputDir to use ./figma-exports. File names come from the node names (lowercase, ASCII, hyphens) unless fileNames is given; the extension always follows format. An existing file is never replaced unless overwrite is true. At most 50 files per call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "figma_export_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNoExport scale, 0.1 to 4 (default 2). Ignored for svg.
formatNoDefault png.
nodeIdsNoNode IDs to export (e.g. ["1:23"]). Use this or namePattern.
fileNamesNoOptional names, one per node in order, without folders. The extension is added for you.
outputDirNoAbsolute destination folder inside an allowed export folder. Default: ./figma-exports.
overwriteNoReplace files that already exist (default false).
sessionIdNoTarget a specific Figma file/tab. Omit to auto-select.
namePatternNoExport every frame on the current page whose name matches, e.g. "Workspace/*". Use this or nodeIds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.7.1

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does it well: it discloses filesystem side effects, the allowed write roots (./figma-exports and FIGMA_EXPORT_ROOTS), the default no-overwrite policy, a hard cap of 50 files per call, and how filenames/extensions are derived from node names and format. These are exactly the destructive/scope traits an agent needs before invoking.

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

Conciseness4/5

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

Front-loads the most important distinction (writes to disk and returns paths) in the first sentence, then layers selection, write scope, and naming rules. It is dense with only minor redundancy (outputDir default is stated twice), but every sentence carries operational information.

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

Completeness5/5

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

For an 8-parameter, all-optional export tool with no output schema and no annotations, the description covers the side effects, path constraints, overwrite policy, volume limit, and return value shape. An agent has everything needed to invoke it safely without further inference.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description goes beyond it by clarifying wildcard semantics on node name ("Workspace/*"), that matching is limited to the current page, that fileNames map one-per-node in order without folders or extensions, and that outputDir defaults to ./figma-exports. It does not add anything for scale, format, sessionId, or overwrite beyond what the schema already says.

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

Purpose5/5

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

States a specific verb and resource ("Export frames ... to image files ON DISK") plus the crucial side effect that it returns paths, not image data. It explicitly contrasts itself with the sibling read path ("use figma_read screenshot to LOOK at a frame instead"), so an agent can distinguish the two without opening schemas.

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

Usage Guidelines5/5

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

Gives a positive use case (saving mockups for docs, PRDs, attachments) and an explicit when-not with the named alternative (figma_read screenshot for viewing). It also explains the two alternative selection mechanisms (nodeIds vs namePattern) and their scope limit (current page only).

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