Skip to main content
Glama

scroll

Scroll the active Chrome tab vertically or horizontally, by pixel offsets, viewport pages, or directly to a CSS-selected element to bring it into view.

Instructions

Scrolls the page by pixel offset, viewport pages, or to a specific element using CSS selector. Side effects: modifies DOM scroll position (observable but reversible). Prerequisites: requires an active Chrome tab with content. Returns: scroll completion confirmation. Use this to navigate within long pages or bring elements into view. Alternatives: 'click_element' to trigger scroll by clicking, 'evaluate_js' for custom scroll logic.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoHorizontal scroll distance in pixels. Constraints: integer (positive=right, negative=left). Interactions: ignored if 'selector' is provided; combined with 'y' for diagonal scrolling. Defaults to: 0 (no horizontal scroll).
yNoVertical scroll distance in pixels. Constraints: integer (positive=down, negative=up). Interactions: ignored if 'selector' or 'pages' is provided; overridden by 'pages'. Defaults to: 0 (no vertical scroll).
pagesNoNumber of viewport heights to scroll vertically. Constraints: positive float (e.g., 1.5 = 1.5× viewport height). Interactions: takes precedence over 'y' parameter if both provided; ignored if 'selector' provided. Defaults to: None.
tab_idNoThe Tab ID of the target tab. Omit to use the active tab.
selectorNoCSS selector of element to scroll into view. Constraints: valid CSS selector string. Interactions: takes precedence over 'x', 'y', 'pages' if provided; fails if element not found. Defaults to: None.
instance_idNoChrome instance id from open_instance/list_instances. Omit for the default instance.
Behavior4/5

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

With no annotations provided, the description carries the full burden and discloses a side effect ('modifies DOM scroll position (observable but reversible)'), a prerequisite, and a return value. This is useful transparency, though it does not go into edge cases like element-not-found failure or lazy-loading behavior.

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?

Four concise sentences front-load the primary action, then cover side effects, prerequisites, return value, use case, and alternatives with no wasted words. Every sentence earns its place.

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 six-parameter tool with no output schema or annotations, the description gives enough context to use it correctly: purpose, modes, side effects, return confirmation, and relevant alternatives. It could add more about failure modes, but the schema covers parameter-level behavior comprehensively.

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?

The parameter schema already provides 100% coverage with detailed descriptions for each parameter, so the baseline is 3. The description adds a useful high-level mapping of pixel offset, pages, and selector to the underlying parameters, but does not add meaning beyond what the schema already documents.

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 a specific verb and resource ('Scrolls the page') and enumerates the three distinct modes: pixel offset, viewport pages, and element selector. It also distinguishes itself from sibling tools by naming click_element and evaluate_js as alternatives.

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?

The description explicitly says when to use this tool ('navigate within long pages or bring elements into view') and names alternatives with their purpose ('click_element' for click-triggered scroll, 'evaluate_js' for custom scroll logic). It also provides a prerequisite: requires an active Chrome tab with content.

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/raultov/chrome-debug-mcp'

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