Skip to main content
Glama
arimunandar

figsnap-mcp

by arimunandar

Read a design as code

figma_extract
Read-only

Extract Figma nodes as standalone HTML, byte-exact CSS, React components, and SVG icons with images inlined. Batch up to 20 nodes at once; one failed ID returns an error without stopping the rest.

Instructions

The full extraction of one node: HTML measured against what Figma draws, byte-exact figmaCss, a React component, plain CSS and CSS modules. Images are inlined and icons come out as real SVG, so the HTML stands on its own. This is the tool that answers "what does this design actually say".

Several nodes at once, instead of one call each: nodeIds, urls, selection: true, or saved: true with an optional folder. A batch answers {results:[…]}, one entry per input, each {ok:true,extraction} or {ok:false,error}, so one bad id never sinks the rest. It is capped at 20 entries, and no batch returns an image — ask figma_export_png for a picture, a node at a time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoA Figma link, as an alternative to nodeId.
urlsNoSeveral Figma links, extracted in one call. Up to 20.
savedNoExtract the designer’s saved set. Narrow it with folder.
scaleNoRender scale for any image output. Default 2.
folderNoWith saved: true, one folder of it. "" is the root.
nodeIdNoFigma node id, like "21:10314". Omit to use whatever is selected on the canvas.
formatsNoWhich representations to return. Default html and figmaCss. "png" comes back as a real image you can look at, alongside the text — there is no base64 in the answer, so ask for it freely on a single node. figma_export_png is the same picture with nothing else attached.
nodeIdsNoSeveral node ids, extracted in one call. Up to 20.
selectionNoExtract every layer the designer has selected, not just the first.
topLayerOnlyNoStop at the selected layer rather than walking into it.
inlineInstancesNoExpand component instances instead of referencing them.
Install Server

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already mark the tool as read-only and non-destructive, and the description adds substantial behavioral context beyond that: images are inlined, icons are real SVG, batches are capped at 20, failures are isolated per entry, and there is no base64 in the response. This gives the agent a reliable model of how the tool behaves.

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?

The description is front-loaded with the core purpose and then moves into batch behavior and alternatives. It is longer than minimal, but nearly every sentence carries a distinct fact; only a small amount of redundancy exists between the formats discussion and the later png note.

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

Completeness5/5

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

For a read-only tool with 11 optional parameters and no output schema, the description provides the essential operational details: output formats, batch result shape, per-entry error handling, the 20-entry limit, and where to route image requests. Nothing an agent needs to choose or invoke this tool correctly is missing.

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?

The schema already documents all 11 parameters at 100% coverage, so the baseline is 3. The description adds meaningful behavior around those parameters, especially the {results:[…]} contract, the 20-entry cap, and the image/export distinction. It does not walk through every parameter, but it does not need to given the schema's completeness.

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 and resource: it extracts a Figma node into HTML, figmaCss, React, and CSS variants. It even frames itself as 'the tool that answers what does this design actually say,' making its role unmistakable against siblings like figma_export_png or figma_get_tree.

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

Usage Guidelines5/5

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

It explicitly explains the batch input modes (nodeIds, urls, selection, saved) and when to prefer alternatives: 'ask figma_export_png for a picture, a node at a time.' It also clarifies that batches never return images, giving the agent a clear routing rule.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arimunandar/figsnap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server