Skip to main content
Glama

Scroll

browser_scroll

Scroll a page or bring a specific element into view using CSS selector, ref, or accessibility match. Specify pixel deltas for horizontal or vertical scrolling.

Instructions

Scrolls an element into view, or scrolls the page by a pixel delta when no element is given.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dxNoHorizontal pixels to scroll.
dyNoVertical pixels to scroll (positive = down).
cssNoCSS selector, as an alternative to ref.
refNoElement ref from the most recent snapshot, e.g. "e12". Preferred — refs are exact. Only valid for the page state that produced them.
nameNoAccessible name to match alongside role.
roleNoARIA role, e.g. "button". Combine with name for an accessible-name match.
indexNoWhich match to use when the selector is ambiguous (0-based, default 0).
sessionIdYesSession id returned by browser_start.
Behavior3/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, so the tool may mutate or cause side effects. The description does not disclose what side effects occur (e.g., scroll position changes are visible to user) or any potential navigation side effects. It adds a small detail about delta direction (positive = down) but misses the broader behavioral implications of openWorldHint.

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?

One concise sentence covers the two main modes, with the key condition ('when no element is given') included. It is front-loaded and to the point, though it could add a brief note about parameter precedence without much length.

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?

With 8 parameters and no output schema, the description does not explain how the different locator strategies interact (ref vs css vs role/name), nor what happens if multiple are provided. It also doesn't note that refs are only valid for the current page state, though that is in the schema. The description adds the core mode distinction but leaves open questions about parameter precedence and error behavior.

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%, so every parameter is documented in the schema. The description adds the relationship between delta scrolling and element scrolling (dy positive = down), but does not explain interactions between parameters (e.g., dx/dy together vs ref/css/role/name). Baseline 3 is appropriate since schema covers most semantics.

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 (scrolls) with two modes: into view by element, or pixel delta. It distinguishes between element-based and delta-based scrolling, but does not explicitly contrast with sibling navigation tools like browser_navigate or browser_go_back, so it could be clearer about its unique role.

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

Usage Guidelines4/5

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

The description implies when to use delta vs element scrolling ('when no element is given') and mentions the element ref is preferred. However, it does not provide explicit when-not-to-use guidance or name alternatives (e.g., browser_navigate for page-level jumps). It gives clear context for the two modes but no exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hofmeister/web-ui-tester'

If you have feedback or need assistance with the MCP directory API, please join our Discord server