Skip to main content
Glama

Scroll page or element

browser_scroll

Scroll a webpage or scrollable container up, down, left, right, to top or bottom, or bring a target element into view by selector or ref.

Instructions

Scroll the page or a scrollable container in a direction (up, down, left, right, top, bottom), or scroll a target 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
refNoOptional element ref to scroll into view or scroll inside.
tabIdNoControlled tab id.
amountNoPixel distance for up/down/left/right scrolling (default 500).
selectorNoOptional CSS selector to scroll into view or scroll inside.
directionNoScroll direction (if omitted with ref/selector, scrolls element into view).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false). Beyond that, the description adds nothing: it does not say whether scrolling waits for completion, what happens if no scrollable container is found, or how the viewport state changes. The only extra fact — scrolling an element into view when direction is omitted — is already in the schema.

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 that leads with the action and the two modes. The parenthetical direction list slightly duplicates the schema enum, but there is no filler or hedging.

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 five-parameter, all-optional tool with no output schema, the description is adequate but leaves real ambiguities unaddressed: what happens when both ref and selector are supplied, or when neither is supplied and no direction is given, and what a successful vs failed scroll returns. These are decisions an agent must make at call time.

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 ref, selector, tabId, amount (default 500), and the direction enum are all documented in the schema. The description merely restates the direction options and the element-into-view case, adding no precedence rules for ref vs selector. Baseline 3 applies when the schema carries the load.

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 (scroll) and resource (page or scrollable container), and enumerates the two distinct modes: directional scrolling and scroll-element-into-view. It does not need to differentiate itself from siblings because no sibling scrolls, though it also never references them.

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?

The description only says what scrolling does, never when to reach for it instead of browser_wait, browser_snapshot, or a re-navigation, and gives no exclusions or prerequisites (e.g. that a controlled tabId matters). An agent must infer usage entirely from the action verb.

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