Skip to main content
Glama

browser_scroll

Scroll a page or specified scrollable pane vertically or horizontally to a pixel distance or target offset, then wait for movement to stop so you can resume from a known position.

Instructions

Scroll. Give deltaY (how far; positive is down, as scrollTop counts) or toY (where to end up; 0 is the top, 999999 the bottom), not both; deltaX / toX are the horizontal ones. What scrolls is whatever is under the pointer: to scroll a pane that scrolls on its own (a mail list, a results panel), give its emsn; emsn -1 scrolls the whole page, only when the snapshot's page position line offers it. Replies once the scroll is at rest, saying when it moved less than asked (at the end, or the page took the wheel); coordinates are void after a scroll, so take a fresh snapshot to see where you are.

Input Schema

NameRequiredDescriptionDefault
xNoWith y, a viewport point to scroll at instead of an emsn; with an emsn, a spot inside it.
yNoSee x.
toXNoHorizontal offset to end up at.
toYNoVertical offset to end up at; past the end is the end.
emsnNoThe scrollable element to scroll, from the snapshot; -1 for the page.
speedNoPercent of human hand speed, default 100. Changes duration, not distance.
tabIdNoTab to act on. Defaults to the foreground tab of that window.
deltaXNoHorizontal pixels; positive scrolls right.
deltaYNoVertical pixels; positive scrolls down.
windowIdNoWindow to act on. Defaults to the frontmost window.
timeoutMsNoHow long it may take to come to rest or arrive; default 7000, more with repeatCount.
snapshotIdNoRequired with emsn or x,y; see browser_click.
repeatCountNoRepeat a deltaY/deltaX scroll this many times.
repeatDelayMsNoPause between repeats, default 300.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses meaningful behavior: the tool replies only once scrolling is at rest, reports when it moved less than requested because of an end or page intervention, and invalidates coordinates afterward. These are strong operational details beyond the schema, though permission or failure-mode behavior is not described.

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?

The paragraph is front-loaded with the main scrolling model and then layers target selection, return behavior, and post-scroll state. It is dense but efficient for a 14-parameter tool; each clause contributes operational meaning, though the semicolon-heavy structure makes it slightly harder to parse than necessary.

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 complex, annotation-free tool with no output schema, the description covers the key gaps: how target selection works, what scrolling modes exist, what the tool returns (at-rest notification), how partial movement is reported, and that snapshots must be refreshed after scrolling. It is nearly complete, though it could say more about failure or timeout behavior beyond the schema's timeoutMs.

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 description coverage is 100%, so the baseline is 3. The description still adds value by constraining mutually exclusive parameters ('deltaY ... or toY ..., not both'), explaining sign conventions ('positive is down, as scrollTop counts'), and clarifying that emsn -1 applies only when the snapshot offers it. It does not overload schema details but tightens their meaning.

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?

The description names a specific verb and resource, 'Scroll', and immediately clarifies the two main modes: relative delta scrolling versus absolute to-position scrolling. It is clearly distinguishable from siblings like browser_click or browser_wait because it defines exactly what scrolling means and how the target is selected.

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

Usage Guidelines5/5

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

It gives explicit selection rules: use deltaY or toY, not both; deltaX/toX are the horizontal equivalents; use emsn for independently scrolling panes; use emsn -1 for the whole page only when the snapshot's page position line offers it. It also states that coordinates become void after a scroll and a fresh snapshot is needed, which is a critical usage constraint.

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