Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

Get design spec for a node

figma_get_design
Read-onlyIdempotent

Get a code-oriented spec of a Figma frame, component, or layer from a link: layout, sizing, fills, typography, variants, and design tokens. Use it to turn designs into implementation details.

Instructions

Returns a compact, code-oriented spec of a frame/component/layer: layout (flex direction, gap, padding, alignment, sizing fill/hug/fixed), size/position, fills, strokes, radius, effects, text content and typography, component/variant/props of instances, bound variables (design tokens) by name, and which layers should be exported as assets. Repeated styles are listed once under "styles" and referenced by id (named Figma styles keep their names).

No Dev Mode or Figma seat needed. Works from a link: https://www.figma.com/design//?node-id=1-2

Use figma_get_screenshot alongside to see it, figma_get_code for a starting implementation, figma_download_assets to fetch icons/images.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "figma_get_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFigma link, e.g. https://www.figma.com/design/<fileKey>/<name>?node-id=12-345 (right-click a layer > Copy link to selection). A bare file key also works.
depthNoLevels below the node to include. Omit for everything; the result is trimmed automatically if too large.
formatNoyaml (default, ~30% fewer tokens) or jsonyaml
sourceNoWhere to read from. auto (default): Figma's viewer protocol (no token, no Dev Mode), then the REST API if FIGMA_TOKEN is set, then the plugin. web/rest/plugin force one.auto
node_idNoNode id to use instead of the one in the link, e.g. "12:345", "12-345", or an instance sublayer "I12:345;67:89".
include_hiddenNoInclude hidden layers

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and openWorld, so the safety profile is covered. The description adds genuinely useful behavior the annotations don't: no Dev Mode or paid seat required, link-based access with a concrete URL shape, automatic trimming when output is too large, and style de-duplication under a "styles" key. It stops short of return format shape, size limits, or failure modes, which keeps it at a solid but not rich level.

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?

Front-loaded with purpose and payload, then a compact auth/URL line, then sibling routing; nothing is filler. The first sentence is a long enumeration but every clause maps to real return content, so density is justified. Minor cost: the payload list is dense enough to skim past.

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 read-only extraction tool with no output schema, the description does the heavy lifting by naming the spec sections returned and the style-deduplication convention. The main residual gap is operational expectations — result size limits, pagination/trimming behavior in practice, and error cases for invalid links or missing nodes.

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 url, depth, format, source, node_id, and include_hidden are all self-documenting and the baseline of 3 applies. The description adds no parameter-level meaning beyond the schema — it never explains depth trade-offs, when to force source=rest versus web, or how node_id interacts with the link — so it does not exceed the schema.

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 opens with a concrete verb and resource ("Returns a compact, code-oriented spec of a frame/component/layer") and then enumerates the exact payload: layout, sizing, fills, typography, bound variables, and export candidates. This is specific enough that an agent can distinguish it from metadata/file-listing siblings without opening a 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 explicitly routes complementary work: figma_get_screenshot to see the node, figma_get_code for implementation, figma_download_assets for icons/images, and states "No Dev Mode or Figma seat needed. Works from a link." That is clear usage context, but it frames siblings as add-ons rather than giving when-to-prefer conditions versus spec-adjacent tools like metadata, components, or styles, so it falls short of full alternative routing.

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