Skip to main content
Glama
figma-mcp
by ivn4k

Read selection

get_selection
Read-only

Retrieves the nodes currently selected in Figma, including their subtree up to a configurable depth, so AI agents can inspect selected layers and details without manual lookup.

Instructions

Nodes currently selected by the user in Figma, with their subtree up to depth.

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

Input Schema

NameRequiredDescriptionDefault
depthNoLevels of children to include
detailNo"outline" = id/name/type/children only (cheap, for exploring); "full" = geometry, fills, layout, text, componentsfull
maxNodesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, so the description's added disclosure is the selection-scoped nature of the result and the subtree expansion. It does not say what is returned when nothing is selected, nor whether maxNodes silently truncates results, which matters for a tool with a 300-node default cap.

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?

A single front-loaded sentence with zero waste. It is a noun phrase rather than a full clause, which is slightly terse but keeps the key scoping information first.

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 compact read tool whose safety profile is covered by annotations and whose parameters are largely documented in the schema, the remaining gaps are the empty-selection case and truncation behavior under maxNodes. Adequate, but not fully complete.

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 67%, and the richer parameters (`detail` outline-vs-full and `maxNodes`) are already well documented in the schema itself. The description only echoes `depth`, which the schema also describes, so it adds little meaning beyond structured fields — the baseline 3 fits.

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 names a specific resource — the user's current Figma selection plus its subtree bounded by `depth`. That is distinguishable from sibling read tools like get_nodes or get_document, though it omits any explicit contrast with them.

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 stated when-to-use, no when-not-to-use, and no mention of the obvious alternative set_selection or the id-based get_nodes. An agent must infer that this is the tool for 'what the user is looking at right now' from the phrase 'currently selected by the user' alone.

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