Skip to main content
Glama

Scroll

browser_scroll

Scroll pages, virtual-scroll containers, or specific elements into view to reach off-screen content and trigger loading in browser automation workflows.

Instructions

Scroll the page or a container (virtual scroll lists), or scroll an element 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": "browser_scroll"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
nthNo
refNoElement ref from snapshot (preferred)
nameNo
roleNo
textNo
exactNo
labelNo
amountNo
expectNoExpectSpec postconditions
pageIdNo
testIdNo
withinNoScope to a unique container (ref, role+name, label, testId or CSS selector)
sessionNo
selectorNoCSS (last resort)
snapshotNoPage state returned after the action: diff (default), full, none
directionNo
placeholderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, and the description does not contradict them. It does add one piece of behavioral context the annotations lack: that virtual scroll lists are supported, which is not obvious from the schema. However, it says nothing about side effects (lazy loading, network activity), postcondition checking via `expect`, or how the `snapshot` return mode behaves after a scroll, so credit is limited.

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?

A single front-loaded sentence with no filler; the parenthetical about virtual scroll lists is the only added detail. It is efficient, though its brevity is partly the cause of the gaps elsewhere rather than a virtue in itself.

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 an 18-parameter tool with no output schema and only partial annotation coverage, the description is thin: it establishes the tool's scope but not how to drive it. Because the schema does carry some inline descriptions (ref, selector, within, snapshot, expect), the definition is not unusable, but the description leaves meaningful work to the schema.

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

Parameters2/5

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

With 18 parameters and only 28% schema description coverage, the description carries most of the burden and delivers little. It implicitly maps to `within` (container scope) and ref/selector (element-into-view) and mentions virtual lists, but adds no meaning for `to`, `direction`, `amount`, `nth`, `expect`, or the element-matching params (role/name/text/label/testId), all of which an agent must reverse-engineer from the schema alone.

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 gives a specific verb (scroll) with three distinct targets: the page, a container (explicitly calling out virtual scroll lists), and an element into view. That is enough for an agent to recognize it as the only scroll-family tool among siblings such as browser_click or browser_snapshot, though it stops short of naming the targeting parameters that select each mode.

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?

The three modes imply when the tool applies (page scroll vs. inner-container scroll vs. bringing an off-screen element into view), but the description never states how to choose between them or which parameter triggers which mode. There are no exclusions, prerequisites, or alternatives named, leaving selection logic to be inferred from the schema.

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