Skip to main content
Glama

Export assets

export_assets
Read-only

Exports SVG icons and original image assets from a Figma target into a folder, deduplicates files, and maps each file to its layer or source hash. Use as:"svg" or as:"png" to export target layers.

Instructions

Writes the icons (SVG) and images (original files) used inside the target to a folder, deduplicated, and lists which file belongs to which layer / src hash. as:"svg"|"png" exports the target layers themselves instead.

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

Input Schema

NameRequiredDescriptionDefault
asNoauto (default): every svg graphic + image fill inside the target.
dirNoOutput folder (default "figma-assets" in the working directory).
fileNoWhich open Figma file (name or key) when several are connected. Default: the most recently active.
scaleNoPNG scale for as:"png" (default 2).
targetNoFigma URL, node id(s) like "12:34" (comma-separated), or omit for the current selection in Figma.
current_colorNoReplace the single colour of monochrome SVG icons with currentColor (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

The annotation declares readOnlyHint=true, yet the description opens with "Writes ... to a folder" and describes emitting files plus an index of layer/src-hash mappings — a filesystem side effect that conflicts with a strict reading of read-only. It is likely meant as "does not modify the Figma document," but the description never reconciles the two, and it also omits overwrite behavior, whether the output folder must exist, and any permission requirements.

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?

Two dense sentences with the primary behavior front-loaded and the mode variant immediately after; nothing is padding. Minor friction from compressed phrasing ("layer / src hash", the unspaced "as:"svg"|"png"") that reads more like notes than prose.

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?

With six optional parameters, full schema coverage, and no output schema, the description is close to sufficient and does hint at the returned file-to-layer mapping. Gaps remain around what happens to pre-existing files in the output folder, the structure of the listing, and the read-only versus on-disk-write tension — all consequential for a tool whose whole job is producing files.

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 the schema already documents dir, file, scale, target, and current_color. The description adds meaningful semantics for the as parameter (auto = embedded graphics and image fills; svg/png = the target layers) and for the deduplicated index output, but contributes nothing for the remaining five parameters.

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?

"Writes the icons (SVG) and images (original files) used inside the target to a folder" gives a specific verb plus concrete resource set, and the second sentence carves out the alternate mode where the target layers themselves are exported. An agent knows exactly what comes out. It stops short of 5 because nothing explicitly separates it from look-alike siblings such as get_screenshot, leaving that comparison to inference.

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

Usage Guidelines3/5

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

The description does distinguish the two operating modes (default grabs SVG graphics and image fills inside the target; as:"svg"|"png" grabs the layers themselves), which is real routing guidance for the main decision. But it gives no when-to-use context against alternatives like get_screenshot or get_css, and no prerequisites such as whether Figma must have a selection or dedicated permissions.

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