Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

Get layer outline / find layers

figma_get_metadata
Read-onlyIdempotent

Retrieve a sparse layer-tree outline from a Figma link, using name/type/text filters to locate matching layers and paths without fetching full design data.

Instructions

Sparse outline of a node's layer tree: one line per layer with id, type, name, position and size (text layers show their text). Cheaper than figma_get_design for large screens. With name/type/text filters it searches the subtree and lists matches with their path, e.g. find every "Button" instance or the layer containing "Checkout".

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_metadata"
  }
}

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.
depthNoOutline depth (ignored when filtering)
limitNo
typesNoLayer types to match, e.g. ["INSTANCE","TEXT","FRAME","COMPONENT"]
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".
name_containsNoCase-insensitive substring of the layer name
text_containsNoCase-insensitive substring of a text layer's content

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description still adds real context: the per-layer output format, that text layers include their text, the cost trade-off versus another tool, and that filtering switches to a subtree search returning paths. It doesn't mention result size behavior against `limit` or what happens when nothing matches, which keeps it off a 5.

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?

Two sentences: the first front-loads what you get back, the second covers cost and the alternate search mode. Every clause carries information (output shape, text-layer behavior, cost comparison, filter semantics, examples) with no filler or repetition of schema text.

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?

With eight parameters, no output schema, and an open-world read, the description adequately covers return shape, cost, and filter behavior, letting the schema handle URL/node_id/source details. The gap is result-volume behavior (limit/truncation) and empty-result handling, which an agent calling a search-style tool would want.

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 88%, so the baseline is 3; the description goes beyond it by explaining that the filters are not cosmetic — they convert the call into a subtree search that returns matches with their path — and by giving concrete filter examples ('find every "Button" instance'). It doesn't clarify how filters combine or that depth is bypassed in filter mode beyond what the schema already states.

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 first sentence names the exact resource and its return shape ('sparse outline of a node's layer tree: one line per layer with id, type, name, position and size'), and the second explicitly distinguishes an alternative ('Cheaper than figma_get_design for large screens'). An agent can separate this from figma_get_design or figma_get_file from the text alone.

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 gives a clear selection rule against a sibling (use this instead of figma_get_design when the screen is large / cost matters) and explains the two modes: outline vs. filtered search ('With name/type/text filters it searches the subtree'). What's missing is an explicit when-not-to-use, e.g. when full style/property detail is required and figma_get_design is mandatory.

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