Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

export_node_to_file

Export a Figma node or slice to a PNG, JPG, SVG, or PDF file on disk so images stay out of the conversation. Provide the node ID and an absolute output path.

Instructions

Export a node or slice to a file on disk (PNG, JPG, SVG or PDF), keeping the image out of the conversation

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": {
      "nodeId": "<nodeId>",
      "path": "<path>"
    },
    "name": "export_node_to_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute output path, including the file name
scaleNoPNG and JPG only; default 1
formatNoDefault PNG
nodeIdYesThe node or slice to export

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the most valuable non-obvious trait, that the rendered image is not returned into the conversation, and that it writes to the filesystem. It says nothing about overwriting existing files, whether parent directories are created, permission or sandbox requirements, or what the call returns.

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

Conciseness5/5

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

A single sentence with the output medium and formats front-loaded and zero filler. Every clause contributes either scope or differentiation.

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

Completeness3/5

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

For a simple four-parameter tool with a fully documented schema, most of what an agent needs is present, and there is no output schema to explain. However, the absence of any annotation and of return/overwrite behavior leaves the post-call picture incomplete for a filesystem-writing tool.

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 coverage is 100%, so path, format enum, scale, and nodeId are already documented in the schema, and the description adds nothing beyond restating the formats and the node-or-slice target. Baseline 3 applies because the schema does the explanatory work.

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 (Export), its target (a node or slice), the destination (a file on disk), and the supported formats. The clause 'keeping the image out of the conversation' implicitly separates it from the sibling export_node_as_image, so an agent can choose between them without opening either schema.

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 description makes the selection condition clear: use this when the image should land on disk rather than in the conversation. It stops short of naming the alternative tool explicitly or stating exclusions (e.g., don't use for inline preview), so it is strong context without full routing guidance.

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