Skip to main content
Glama
Figma Local MCP

Figma Local MCP

by ppgee

Get Figma design context

get_design_context

Reads layout, styles, text, components and variable bindings for a selected Frame or node ID via the local Plugin API, so agents can inspect design context without the Figma REST API.

Instructions

Read layout, styles, text, components and variable bindings for a selected Frame or a node ID. Uses the local Plugin API, not the Figma REST API.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_design_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdNoOptional Figma node ID. Omit to use the single selected node.
fileKeyNoOptional key of the Figma file to target. Omit to use the most recently active file; see get_plugin_status.
maxDepthNo
maxNodesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add real value by declaring this uses the local Plugin API rather than the REST API, which implies a plugin dependency and possibly different data fidelity, and "Read" signals a non-mutating operation. It does not say what happens when no plugin/file is active, whether the read is expensive on large subtrees, or what the returned structure looks like.

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?

Two short sentences with no filler, and the core capability is front-loaded. The second sentence is a genuinely useful qualifier rather than padding, though a clause about traversal limits would have been worth the space.

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

Completeness3/5

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

For a four-parameter read tool with no output schema and no annotations, the description covers the what and the API mechanism but leaves the traversal parameters and failure modes unexplained. An agent can call it, but may pick poor depth/node budgets or be surprised when the plugin is not active.

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 coverage is 50%: nodeId and fileKey are documented in the schema, and the description reinforces the selection-default behavior for nodeId. The two traversal controls the agent must choose deliberately, maxDepth (default 6, max 20) and maxNodes (default 300, max 2000), receive no explanation in either the schema or the description, so the description fails to compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ("Read") plus an enumerated set of resources (layout, styles, text, components, variable bindings) and names the target (a selected Frame or node ID). It also distinguishes itself from the Figma REST API, though it does not differentiate from siblings such as get_selection, get_document, or get_style_defs, which overlap meaningfully.

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 description implies when to use it (you have a selected frame or node ID and want full design context) and the schema notes that omitting nodeId falls back to the current selection. However, it never says when to prefer get_selection, get_document, or get_style_defs instead, nor does it state prerequisites such as the plugin needing to be running.

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