Skip to main content
Glama

scroll

Scroll a page, container, or element into view. Tracks position and content growth to detect lazy-loaded content. Avoids manual JavaScript scroll methods.

Instructions

Scroll the page, a container, or an element into view. Returns position and content-growth tracking (scrollHeight grew by Npx — useful for detecting lazy-loaded content). Do NOT scroll with evaluate(window.scrollTo/scrollBy) — scroll handles position tracking and settle timing automatically. Use container_ref/container_selector + direction to scroll inside a specific container.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoElement ref to scroll into view (e.g. 'e42')
selectorNoCSS selector to scroll into view (e.g. '#item-30')
container_refNoScrollable container ref — scroll this container instead of the page (e.g. 'e10')
container_selectorNoScrollable container CSS selector (e.g. '.sidebar-list')
directionNoScroll direction (when no ref/selector given). Default: down
amountNoPixels to scroll (default: 500). Only used with direction.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that the tool returns position and content-growth tracking, and that it handles settle timing automatically. It does not mention potential side effects or error conditions, but the key behaviors are transparent.

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?

The description is two sentences with a critical warning, front-loaded with the core action. Every sentence adds value: what it does, return info, warning, usage pattern. No redundancy or fluff.

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?

Given the 6 parameters, no output schema, and no annotations, the description covers the core behavior, return values, and parameter relationships reasonably well. It could mention error handling or edge cases, but it is sufficiently complete for most use cases.

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 baseline is 3. The description adds meaning by explaining the relationship between ref/selector and container/direction/amount, noting defaults (direction: down, amount: 500), and clarifying that amount is only used with direction.

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 clearly states the tool scrolls the page, a container, or an element into view, using specific verbs and resources. It distinguishes itself from sibling tools like evaluate by explicitly warning against using window.scrollTo/scrollBy and explaining the automatic position tracking and settle timing.

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 provides explicit guidance on when to use container_ref/container_selector with direction for scrolling inside a container, and advises against using evaluate for scrolling. However, it does not fully cover all alternative scenarios or prerequisites for each parameter combination.

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/Silbercue/public-browser'

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