Skip to main content
Glama
open-figma-mcp

open-figma-mcp

by RHK1335

figma_get_design_context

figma_get_design_context

Retrieve depth-limited design trees for the current Figma selection, page, node, or screen—or one per supplied node ID—to inspect structure and properties.

Instructions

Get a depth-limited tree for the current selection, current page, node, or screen. With nodeIds (and no nodeId) returns one tree per id. Same fields as figma_get_node.

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": "figma_get_design_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNo
detailNo
nodeIdNoFigma node ID. Colon or URL hyphen format accepted.
nodeIdsNoFigma node IDs. Colon or URL hyphen format accepted.
screenKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

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 behavioral burden. It discloses the depth-limited tree shape, the one-tree-per-id expansion rule, and that fields match figma_get_node, but says nothing about defaults (depth/detail), result size limits, or error behavior for invalid ids.

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, front-loaded with the core capability, with the parameter-interaction rule second. Nothing is padded, though the phrasing 'current selection, current page, node, or screen' is slightly listy without mapping cleanly to parameters.

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 five-parameter read tool with no annotations and no output schema, the description covers the main targeting modes and the multi-id case but leaves three parameters (depth, detail, screenKey) without behavioral meaning and omits the default behavior when no arguments are passed.

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 40%, and the description fills some gaps: it explains nodeId vs nodeIds precedence and ties the no-parameter case to the current selection/page. However, the depth parameter's cap, the minimal/compact/full detail enum, and screenKey are not explained anywhere beyond the raw schema.

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?

Specific verb (Get) plus resource (depth-limited tree) and an enumeration of what can be targeted: current selection, current page, node, or screen. It also cross-references figma_get_node for field shape, which helps an agent place it among siblings, though it does not clearly state how it differs from figma_get_node itself.

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?

Usage is implied through the source list (selection/page/node/screen) and the explicit rule that nodeIds without nodeId returns one tree per id. There is no explicit when-not guidance or a named alternative to use instead, so the agent must infer the choice from parameter names.

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