Skip to main content
Glama

fetch_frame

Export a Figma frame to local files: render its PNG, node JSON, and image-fill map with verification hashes. Use to capture frame assets and metadata while preserving unrelated files.

Instructions

Read one Figma frame and transactionally write frame.png, node.json, and a normalized imageRef-to-URL fills.json map under the output directory. Returns upstream request proof plus local size, SHA-256, PNG structure/dimensions, and JSON read-back proof. Existing unrelated files are preserved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scaleNoPNG scale from 0.01 through 4; default 1.
node_idYesExact frame node ID, normally colon-form such as 2968:811.
out_dirYesOutput directory for this frame. Relative paths resolve below the output root (default ./figma-output), which is created on first use; absolute paths must stay below it.
file_keyYesFile key parsed from the Figma URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.1
    • changedInput schema / properties / out_dir / description
      Previous value: -"Directory below the output root (default ./figma-output)."New value: +"Output directory for this frame. Relative paths resolve below the output root (default ./figma-output), which is created on first use; absolute paths must stay below it."
  2. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only indicate readOnlyHint=false and destructiveHint=false, so the description adds meaningful behavior: transactional writes, exact output files, read-back proofs, and preservation of unrelated files. It does not contradict any annotation and gives an agent useful operational expectations beyond the structured fields.

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?

The description is compact and information-dense: three sentences cover the action, outputs, return proofs, and file-preservation behavior with no filler. The most important scoping statement ('Read one Figma frame') is front-loaded.

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 tool with no output schema and non-trivial write behavior, the description explains what is written, what is returned, and that unrelated files are preserved. Minor gaps remain around the exact meaning of 'transactionally' and failure/error behavior, but the description is largely sufficient for invoking the tool correctly.

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 parameters are already fully documented in the schema. The description introduces no parameter-specific semantics beyond referencing the output directory context, which is acceptable given the schema already carries the burden.

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?

The description names a specific verb-resource pair ('Read one Figma frame') and exactly what artifacts it writes (frame.png, node.json, fills.json), which clearly distinguishes it from the sibling list_frames. It also states what the tool returns, removing ambiguity about its scope.

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 phrase 'Read one Figma frame' implies a targeted fetch operation as opposed to listing frames, and the mention of writing a local bundle gives context. However, it never explicitly says when to prefer this tool over list_frames or when not to use it, so the usage guidance is only implied.

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

Deploy Server

Other Tools