Skip to main content
Glama

scroll

Move the page by dx/dy pixel offsets or bring a selected element into view for precise navigation in a shared browser session.

Instructions

Scroll the page by dx/dy pixels (positive dy = down, positive dx = right), or scroll an element into view when selector is given.

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": "scroll"
  }
}

Input Schema

NameRequiredDescriptionDefault
dxNoPixels to scroll horizontally (default 0)
dyNoPixels to scroll vertically (default 600)
tabIdNo
selectorNoScroll this element into view instead (CSS selector or snapshot ref)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / selector / description
      Previous value: -"Scroll this element into view instead"New value: +"Scroll this element into view instead (CSS selector or snapshot ref)"
  2. First observedv0.2.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations provided, the description carries the behavioral burden. It usefully discloses direction semantics, with positive dy meaning down and positive dx meaning right, and it clarifies that selector switches to element-into-view behavior. It does not describe tab targeting, animation/wait behavior, error handling for missing selectors, or what happens if both selector and dx/dy are supplied.

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 definition is a single compact sentence with the main behavior and both operating modes front-loaded. It contains no redundant explanation and is easy to parse.

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 four-parameter browser automation tool, the description covers the core scrolling behavior and the selector alternative. However, it omits tabId semantics entirely, does not state precedence when both selector and dx/dy are supplied, and provides no annotation context to compensate.

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 coverage is 75%, and the description adds meaningful direction semantics not present in the schema for dx and dy. It also reinforces the selector mode, though it does not explain the undocumented tabId parameter.

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?

The description states a specific verb and resource: scrolling the page by dx/dy pixels or scrolling an element into view via selector. This clearly distinguishes the tool's two operating modes, though it does not differentiate it from sibling browser-automation tools.

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

Usage Guidelines3/5

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

The description gives a useful internal mode rule: use dx/dy to scroll the page, or use selector to scroll an element into view instead. However, it does not explain when to choose scroll over related tools such as snapshot, query, or hover, nor does it state exclusions or prerequisites.

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