Skip to main content
Glama

browser_scroll

Scrolls the page or a hovered scrollable container using trusted mouse-wheel events at the current cursor position, then returns the post-scroll state.

Instructions

Scroll the page with a trusted mouse-wheel event dispatched at the current cursor position — works on scrollable containers under the cursor, not just the window. One unit ≈ 120px (a standard wheel notch); 3-5 covers a typical viewport. The cursor position is wherever the last click/hover left it (defaults to page center), so scroll after hovering the container you want to scroll. Returns the post-scroll state: newly revealed elements appear in the diff.

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": {
      "direction": "<direction>"
    },
    "name": "browser_scroll"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoWheel notches — 1 ≈ 120px
directionYesScroll direction

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / amount / description
      Added value: +"Wheel notches — 1 ≈ 120px"
    • addedInput schema / properties / direction / description
      Added value: +"Scroll direction"
  2. First observedv0.1.0

TDQS

A4.4/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 burden and does well: it discloses the event mechanism (trusted wheel event, not synthetic JS scroll), the dispatch position and its default (page center), the unit scale, and the return behavior (post-scroll state with newly revealed elements in the diff). It omits edge behavior such as what happens at a scroll boundary or when nothing is scrollable under the cursor.

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?

Three sentences, each carrying distinct information — mechanism, unit scale, cursor precondition — with the mechanism front-loaded. No restatement of the tool name or filler, and the return-value note is placed last where it is least urgent.

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 two-parameter tool with no annotations and no output schema, the description covers mechanism, sizing, precondition, and return shape, which is nearly everything an agent needs. The remaining gap is failure/boundary behavior, which an agent would otherwise have to discover empirically.

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 100%, so the baseline is 3, but the description adds real meaning: it explains why the unit is roughly 120px and gives the practical calibration that 3-5 units spans a viewport, which the schema does not. The cursor-position semantics also contextualize that no position parameter exists because the mouse location is implicit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (scroll the page) and immediately qualifies the mechanism: a trusted mouse-wheel event dispatched at the current cursor position, which works on scrollable containers under the cursor rather than only the window. That mechanism detail is what separates it from script-based scrolling or key-based scrolling siblings like browser_press or browser_evaluate.

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

Usage Guidelines4/5

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

Gives actionable ordering guidance — 'scroll after hovering the container you want to scroll' — and sizing guidance that 3-5 notches covers a typical viewport. It does not name a specific alternative tool or state when not to use it (e.g., when a direct scroll-into-view via browser_evaluate is preferable), so it stops short of a 5.

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