Skip to main content
Glama

scroll_into_view

Scroll the viewport to bring Figma nodes into view without changing the selection. It fits the nodes or centers them at a set zoom level, switching pages when needed.

Instructions

Scroll the viewport to show nodes without changing the selection (switches page if needed). Without zoom it fits the nodes; with zoom (1 = 100%) it centers on them at that zoom level.

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

Input Schema

NameRequiredDescriptionDefault
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
zoomNo
nodeIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does meaningful work: it discloses the non-selection side effect, the automatic page switch, and the two distinct behaviors distinguished by the optional zoom argument. It stops short of stating what is returned or whether viewport state persists after the call.

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?

Two compact sentences, front-loaded with the primary action and its most important constraint, then the zoom branch. No filler or restatement of the tool name.

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 simple three-parameter viewport tool with no output schema, this covers the behavior an agent needs: side effects, page switching, and the fit-versus-zoom distinction. The only gap is the absence of any statement about the result of the call, which is minor here.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%, and the description compensates for the two parameters the schema leaves thin: it defines what omitting zoom does (fit) versus supplying it (center at that level, 1 = 100%), which the schema states only as a bounded number. The file parameter is left entirely to the schema, which does document it adequately.

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 verb and resource ('Scroll the viewport to show nodes') and adds the key qualifier that selection is not changed, which separates it from selection-style tools. It never names a sibling such as fit_section, which sounds close in function, so differentiation is implied rather than explicit.

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 this is the tool for bringing nodes into view without altering selection. There is no explicit when-to-use/when-not statement and no named alternative for the 'fit an entire section' case.

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