Skip to main content
Glama

monorail_export

Export individual Figma nodes such as vectors, components, or icons as SVG or PNG. Use SVG for scalable assets or PNG with a chosen scale for raster needs.

Instructions

Export any Figma node as SVG or PNG. Unlike monorail_screenshot (slide-level PNG), this targets individual nodes (vectors, components, icons) and supports SVG output. Returns SVG as a UTF-8 string or PNG as base64.

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": "monorail_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNoExport scale factor (default: 1). Only affects PNG output.
formatNoExport format (default: SVG).
node_idNoFigma node ID to export. If omitted, exports the currently selected node.
timeout_msNoThe most this call may take, in ms (default 90000; 1000–600000): waiting its turn behind other sessions' requests plus the plugin's own work. A big node can take longer. The call returns by about timeout_ms + 2s (+ up to 3s if the proxy link is reconnecting), with an error naming the limit that ran out. While it runs, other sessions' requests queue behind it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and delivers the most decision-relevant behavior: output encoding differs by format (UTF-8 string for SVG, base64 for PNG). It does not cover error modes or permission requirements, but the timeout/queuing semantics are fully documented in the schema.

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?

Three short sentences, front-loaded with the core action and with the sibling comparison before the return-format detail. The format capability is restated in both sentence one and two, a minor redundancy, but nothing else is wasted.

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?

For a simple four-parameter export tool with a fully documented schema, the description covers purpose, differentiation, and return encoding — enough to call it correctly despite the absence of an output schema. Only auth/permission context and failure behavior are left unaddressed.

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 format, scale, node_id, and timeout_ms are already explained in the schema. The description only reinforces format choice and node targeting, adding little semantic detail beyond what the schema provides; baseline 3 applies.

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 any Figma node as SVG or PNG") and immediately scopes it against a named sibling, clarifying that this targets individual nodes rather than slide-level captures. An agent can distinguish it from monorail_screenshot without reading 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?

Gives explicit selection context: use monorail_screenshot for slide-level PNG, use this for individual nodes and when SVG output is needed. It stops short of full when-not guidance (e.g., no mention of capture/clone alternatives), but the named contrast covers the most likely ambiguity.

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