Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_get_node_state

Read fills and strokes on a Figma node, including each paint's bound variable ID, to audit applied design tokens. Use for node-level token audits, not component properties or variable values.

Instructions

Read fills, strokes, and their bound variable IDs from any node. Use when auditing what design tokens are applied to a specific node. Returns paint objects with boundVariableId for each fill/stroke. NOT for component property definitions (use figma_get_component). NOT for variable values (use figma_get_variables). Requires Desktop Bridge connection.

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": {
      "nodeId": "<nodeId>"
    },
    "name": "figma_get_node_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdYesNode ID (e.g. '15:203'). Get from figma_get_selection or figma_search_components.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden; it discloses the return shape (paint objects with boundVariableId per fill/stroke) and a real operational prerequisite (Desktop Bridge connection). It does not state the read-only/non-destructive guarantee explicitly or what happens for nodes with no paints, which is the remaining gap for an annotation-free tool.

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?

Four short sentences, each doing distinct work: purpose, when-to-use, return shape, exclusions, prerequisite. Front-loaded with the verb+resource and no filler.

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 one-parameter read tool with no output schema, the description covers purpose, selection guidance, return contents, and connection requirements. The return value is characterized only at a high level (paint objects with boundVariableId), which is slightly thin given no output schema exists to fill it in.

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?

Single parameter with 100% schema description coverage that already documents the nodeId format and where to obtain it. The description adds no node-level semantics beyond the schema, so the baseline of 3 applies.

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?

States a specific verb and resource ('Read fills, strokes, and their bound variable IDs from any node') and immediately scopes it to the design-token audit use case. It also names the two adjacent tools it is not (figma_get_component, figma_get_variables), so an agent can distinguish it without inspecting schemas.

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?

Gives an explicit when-to-use condition ('auditing what design tokens are applied to a specific node') plus two explicit NOT-for exclusions, each routed to the correct alternative sibling. Little is left to inference about tool selection.

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