Skip to main content
Glama
mcp-browser-dev-tools

mcp-browser-dev-tools

by Hinaser

scroll

Move the viewport by pixel deltas, bring an element into view, or dispatch a real wheel event at coordinates or over a selector for browser interaction tests.

Instructions

Scroll the page by deltas, an element into view, or with a real wheel at x, y or over selector with deltas (scrolls what is under the pointer).

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
xNoViewport CSS px, with y, instead of selector.
yNo
blockNoDefault center.
deltaXNoCSS px; negative is left.
deltaYNoCSS px; negative is up.
selectorNoLocator: ref=e3, CSS, text=…, role=button[name="…"], name=…, or a >> b
sessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the full behavioral burden. It adds useful nuance—'real wheel … scrolls what is under the pointer' and 'an element into view'—but omits safety/side-effect profile, defaults, whether the action waits for scrolling, and return behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense sentence with no filler, so it is concise. However, the run-on list of modes ('by deltas, an element into view, or with a real wheel at x, y or over selector with deltas') is syntactically awkward and not front-loaded as clearly as it could be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With seven parameters, no annotations, no output schema, and multiple scroll modes, the definition is too thin to be complete. It does not explain mode selection, defaults, required combinations, or session handling, leaving the agent to infer invocation details.

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%, with descriptions for x, block, deltaX, deltaY, and selector but not y or sessionId. The description adds meaning by tying deltas to a real wheel and explaining that wheel-at-x/y scrolls under the pointer, but it does not clarify block, sessionId, or how selector and deltas interact.

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 uses a specific verb and resource ('Scroll the page') and enumerates three invocation shapes: deltas, element into view, and real wheel at coordinates or selector. It is specific enough to distinguish scrolling from sibling actions such as click or hover, though the compound sentence makes the modes less crisp than a 5.

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

Usage Guidelines2/5

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

No explicit when-to-use or when-not guidance is given, and no alternatives are named. The modes are listed, but the agent is not told which mode to pick for which situation, such as selector with block versus deltas.

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