Skip to main content
Glama

browser_scroll

Scroll a page by pixels, jump to top or bottom, or bring a specific element into view using refs, text, or CSS selectors to control what the browser displays.

Instructions

Scroll by pixels or to top/bottom, or bring 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
byNoPixels down (negative: up)
toNotop or bottom
refNoref from browser_snapshot
textNoVisible text/label, instead of ref
stateNotrue: full page state
selectorNoCSS selector, instead of ref
snapshotNoSnapshot after the action

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.9.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / ref / description
      Previous value: -"Element ref from browser_snapshot, e.g. 12"New value: +"ref from browser_snapshot"
    • changedInput schema / properties / selector / description
      Previous value: -"CSS selector (first match), instead of ref"New value: +"CSS selector, instead of ref"
    • changedInput schema / properties / snapshot / description
      Previous value: -"Also return the page snapshot after the action"New value: +"Snapshot after the action"
    • addedInput schema / properties / state
      Added value: +{
      +  "description": "true: full page state",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / text / description
      Previous value: -"Visible text or label of the element, instead of ref"New value: +"Visible text/label, instead of ref"
    • changedInput schema / properties / to / description
      Previous value: -"Scroll to the top or the bottom"New value: +"top or bottom"
  2. First observedv0.7.1

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It says nothing about whether scrolling triggers lazy-loaded content, whether the page state changes persist, or whether a snapshot is returned by default versus only when the snapshot/state flags are set — meaningful behaviors for a browser automation tool that later steps depend on.

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?

A single front-loaded sentence with zero filler; each clause maps to a distinct capability. Nothing could be removed without losing a mode.

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 a 7-optional-parameter tool with no annotations and no output schema, the description covers the primary modes but omits mutual exclusivity of targeting params and what the caller gets back. It is minimum viable rather than complete.

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 description coverage is 100%, so the baseline is 3. The description does add value by grouping the parameters into three usage modes (pixels, top/bottom, element targeting), but it never clarifies that ref/text/selector are mutually exclusive alternatives, which is the main ambiguity an agent would face.

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 modes: by pixels, to top/bottom, and bringing an element into view. An agent can immediately tell this is a viewport-manipulation tool, but no sibling is named or contrasted (e.g., browser_snapshot for reading the page), so differentiation is left to inference.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no statement about which mode to pick for which situation, and no mention that target parameters originate from browser_snapshot (that detail lives only in the schema). Usage is implied by the enumerated modes but not guided.

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