Skip to main content
Glama

Extract a design spec from Figma

designfit_extract

Convert a Figma frame into the design spec designfit_validate expects. Provide a Figma link or fileKey plus nodeId, or paste raw node data; returns design, componentMap, and viewport.

Instructions

Turn a Figma frame into the design spec designfit_validate expects. Give it a Figma link (https://www.figma.com/design//...?node-id=...), or fileKey + nodeId, and it fetches the node via Figma's REST API using the FIGMA_TOKEN env var; or paste the raw GET /v1/files/:key/nodes response as nodes and nothing is fetched. Returns { design, componentMap, viewport }: add url and call designfit_validate. Deterministic. Hidden nodes are skipped; a frame made only of vectors is one leaf (an icon). maxDepth limits how deep to go.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
nodesNo
nodeIdNo
fileKeyNo
maxDepthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/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 well: it discloses the FIGMA_TOKEN env var auth dependency, that fetching goes through Figma's REST API, determinism, hidden-node skipping, and vector-only frames collapsing to a single leaf. It does not cover error behavior or rate limits, so it falls just short of exhaustive.

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?

Dense but front-loaded, moving from purpose to input modes to return shape to call-site instruction. Every clause carries information; nothing is padding for a five-parameter tool.

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?

No output schema exists, but the description names the return shape { design, componentMap, viewport }, which covers the gap. Combined with full parameter coverage and the auth/fetch explanation, an agent has what it needs, though the nested `nodes` object shape is left to the raw API response.

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 0%, so the description must compensate and largely does: it shows the `url` format with an example, explains `fileKey` + `nodeId` as the alternative, documents `nodes` as a raw GET /v1/files/:key/nodes passthrough, and defines `maxDepth` as depth limit. It does not state precedence if both `url` and `nodes` are supplied, leaving one ambiguity.

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?

Specific verb+resource: 'Turn a Figma frame into the design spec designfit_validate expects.' It names the downstream sibling explicitly, so an agent can place it in the workflow 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?

It lays out the input modes clearly (Figma URL, or fileKey + nodeId, or paste a raw nodes response with no fetch) and routes to designfit_validate with 'add `url` and call designfit_validate'. No explicit when-not-to-use case, but the alternatives are enumerated.

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