Skip to main content
Glama

get_node

Retrieve a Figma node and its child elements by node ID, optionally specifying file and depth, to inspect design structure.

Instructions

Return a node and its children up to depth (default 2).

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

Input Schema

NameRequiredDescriptionDefault
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
depthNo
nodeIdYesFigma node id, e.g. '12:34'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. 'Return' implies a read-only operation and 'children up to depth (default 2)' discloses traversal scope and the default, but permissions, failure behavior for missing nodes, output format, and depth=0 semantics are unstated.

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?

The definition is a single front-loaded sentence with no wasted wording. The core action, resource, and scoping parameter are all presented immediately.

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 simple getter with three parameters and no output schema, the description covers the essential operation and depth default. It remains incomplete regarding the returned node structure, ordering of children, and behavior when the node is not found.

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?

The schema documents nodeId and file, giving 67% coverage. The description adds useful meaning for depth by specifying the default value of 2 and the subtree interpretation, but it does not explain depth edge cases or otherwise compensate for the undocumented aspects of depth.

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?

The description states a specific verb ('Return') and resource ('a node and its children'), and clarifies the scope with 'up to depth (default 2)'. It is clear, but it does not explicitly distinguish this from sibling retrieval tools such as get_document or get_layout_tree.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance on when to use this tool versus alternatives like get_document, get_selection, or get_layout_tree. Retrieval of a node subtree is implied by the description, but no conditions or exclusions are provided.

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