Skip to main content
Glama

scroll

Move the page with mouse-wheel direction and distance, or bring a specified element into view using its ref, selector, or visible text.

Instructions

Scroll the page with the mouse wheel (direction + amount in ~100px steps, default 5), or scroll an element into view by target.

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
refNoElement ref from snapshot/find, e.g. "e12" (preferred).
tabIdNoTab ID from tabs_list. Omit for the active tab.
amountNo
elementNoVisible text or label of the element, e.g. "Sign in" (fallback).
profileNoChrome profile: folder ("Profile 3"), nickname, or unique display name. Omit to use the current profile.
selectorNoCSS selector (fallback).
directionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the unit (~100px steps) and the default amount of 5, which is real behavioral context. It does not say what happens if the element is not found, whether scrolling waits for completion, or whether direction defaults when omitted.

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 compact sentence with the primary mode first and defaults in parentheses — front-loaded and waste-free. The trailing 'by target' clause is slightly loose since no parameter is called target.

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 7-parameter tool with no output schema and no annotations, the description covers both execution modes and the numeric semantics of amount. Remaining gaps — default direction, behavior on missing element, and return value — are modest but real.

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 71%, and the two undocumented parameters (amount, direction) are the ones the description clarifies: units and the default of 5. That is genuine added meaning. It still does not explain the interaction between ref, element, and selector beyond the schema's own 'preferred'/'fallback' notes, so it stays near baseline.

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 pairs a specific verb with two distinct modes: wheel-scrolling the page (direction + amount) and scrolling an element into view. An agent can tell it apart from click/hover/navigate siblings. The only ambiguity is the word 'target', which is not a parameter name — the schema uses ref/element/selector.

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?

Usage is implied by the two described modes, but there is no explicit when-to-use or when-not, no mention of preferring scroll over navigate, and no guidance on how to choose between the two modes. The ref-vs-element-vs-selector preference is carried only by the schema descriptions.

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