Skip to main content
Glama

scroll

Move the current page or a referenced element into view, with optional direction, distance, tab, and snapshot controls for browser automation.

Instructions

Scroll the page, or the scrollable area under ref. With ref and no direction: scroll ref into view.

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

Input Schema

NameRequiredDescriptionDefault
refNoElement ref from the latest snapshot, e.g. e12 or f1e5
tabNoTab id. Default: your own target tab (each agent session gets its own)
findNoInstead of ref: the role and name as the snapshot shows them, e.g. {role:"button", name:"Save"}; nth:2 picks the second match. Survives reloads and new sessions, so recipes use it
amountNoScreens, default 0.8
browserNochrome, edge, ... (only when several browsers are connected)
snapshotNoDefault returns a diff of what changed. true = full snapshot, false = nothing
directionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/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 default no-ref behavior (scroll the page) and the ref-without-direction special case, but says nothing about whether the call waits for the scroll to settle, triggers lazy-loading content, or how failures (stale/unknown ref) surface.

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 terse sentences, front-loaded with the primary action and followed by the one non-obvious conditional case. No filler, no restatement of the name.

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?

Seven parameters, one nested object, no annotations and no output schema make this a moderately complex tool. The description covers the core action and the ref/direction interplay but leaves the find-vs-ref alternative and the default diff-return behavior entirely to the schema, so it is adequate rather than complete.

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 86%, so the schema already documents ref, tab, find, amount, browser and snapshot well. The description still adds real semantic value beyond the schema by defining the interaction between ref and direction that no parameter description states. It omits any hint about amount units beyond the schema's 'Screens, default 0.8'.

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?

States a specific verb plus two distinct targets: 'Scroll the page, or the scrollable area under ref.' The conditional branch ('With ref and no direction: scroll ref into view') makes the two behaviors unambiguous and clearly separates this from click/hover/navigate siblings.

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?

It documents one important conditional usage case (ref without direction = scroll-into-view), which is meaningful guidance. But there is no explicit when-to-use versus alternatives, no mention of when not to scroll (e.g., use wait or navigate instead), and no prerequisites such as needing a fresh snapshot for refs.

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