Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

set_selections

Selects specified Figma nodes by ID and scrolls the viewport to bring them into view, helping you focus on target layers quickly.

Instructions

Select nodes and scroll the viewport to them

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": {
      "nodeIds": "<nodeIds>"
    },
    "name": "set_selections"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdsYesArray of node IDs to select

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.4/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 disclosure burden, and it does contribute one real behavioral fact: the viewport scrolls to the selected nodes, so the call changes view state, not just selection state. It does not say whether existing selection is replaced or added to, what happens with invalid or missing node IDs, or whether the scroll is animated/forced, which are the details an agent most needs for a mutation-like tool with zero annotation coverage.

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?

One short sentence with no filler, and the primary action is front-loaded before the side effect. It is arguably under-specified rather than bloated, so length is not the problem.

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 one-parameter tool with no output schema and no annotations, the description covers the core action and the viewport side effect, which is roughly enough to invoke it. The notable gap is selection semantics (replace vs. append) and failure behavior on unknown IDs, which the structured fields do not cover either.

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?

There is a single parameter with 100% schema description coverage ("Array of node IDs to select"), so the schema already does the semantic work. The description adds no constraint, ordering, or multi-node behavior detail beyond what the parameter description states.

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?

"Select nodes and scroll the viewport to them" gives a specific verb (select) and resource (nodes), plus the visible side effect of scrolling the viewport. It is clear on its own, but it does nothing to distinguish itself from related siblings such as set_focus, which an agent could plausibly confuse it with.

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 only implied: an agent can infer you call this when you want nodes selected and brought into view. There is no explicit when-to-use framing, no statement of prerequisites, and no mention of when another tool (e.g. set_focus) would be the better choice.

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