Skip to main content
Glama

browser_scroll

Scroll a ready sandbox's page with the mouse wheel by dx and dy CSS pixels (dy 800 scrolls down 800), or scroll the element with ref (from browser_snapshot) into view. It answers with the page's URL and title.

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

Input Schema

NameRequiredDescriptionDefault
dxNoCSS pixels to scroll right; negative scrolls left.
dyNoCSS pixels to scroll down; negative scrolls up.
refNoAn element to scroll into view, by its ref in the page's latest snapshot. With dx or dy, the mouse wheel then turns over it, which scrolls what it's in; otherwise over the middle of the viewport.
sandbox_idYesThe sandbox, `sbx_…`.

Output Schema

NameRequiredDescriptionDefault
urlYesThe page's URL.
titleYesThe page's title.
snapshotNoThe page's accessibility tree as an indented outline, one element a line: `- role "name" [ref=N]`. A ref names the element to click, type into or scroll to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false) already convey the safety profile, and the description adds real context beyond them: the sandbox must be 'ready', the delta units are CSS pixels with a concrete example ('dy 800 scrolls down 800'), and it discloses the return shape (page URL and title). It does not discuss what happens at page boundaries or whether scrolling waits for lazy content, which is the main remaining behavioral gap.

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 sentences, front-loaded with the primary action and the alternative mode, followed by the return value. Nothing is repeated and every clause carries information an agent needs.

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?

An output schema exists, so leaving return values to structured data is fine, and the description still summaries them in one clause. For a four-parameter, single-purpose viewport tool with annotations covering safety, the definition covers modes, units, ref provenance and preconditions; only edge-case behaviour (boundary scrolling, lazy-loaded content) is left implicit.

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 100%, including the non-obvious interaction where dx/dy with a ref turns the wheel over that element rather than the viewport centre, so the schema is doing the heavy lifting. The description reinforces the pixel semantics with one example but adds no format or constraint information the schema lacks, so the baseline of 3 applies.

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 opens with a specific verb and object ('Scroll a ready sandbox's page') and immediately enumerates the two distinct modes: wheel delta (dx/dy CSS pixels) or scrolling an element by ref into view. It also points at browser_snapshot as the source of refs, which helps separate it from the other browser_* tools. It stops short of explicitly contrasting itself with siblings like browser_click or browser_press_key, but the action is unambiguous.

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 implied rather than stated: you scroll when you need to move the viewport, and you get refs from browser_snapshot. There is no explicit when-not guidance (e.g. when to prefer browser_snapshot over scrolling, or what a 'ready' sandbox means in practice) and no named alternatives for moving through a page.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources