Skip to main content
Glama
Pagewright (browser-mcp)

Pagewright (browser-mcp)

by zamansheikh

browser_scroll

Scroll pages or scrollable elements by pixel offsets, to top/bottom, or into view to trigger lazy loading and reach off-screen content.

Instructions

Scroll the page or a scrollable element: by deltaY/deltaX pixels (real wheel events, triggers lazy loading), to "top"/"bottom", or scroll an element into view (ref/selector only).

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

Input Schema

NameRequiredDescriptionDefault
toNo
refNoElement ref from browser_snapshot, e.g. "e12". Preferred over selector.
tabIdNoTab to act on. Defaults to the tab last opened/selected by an agent, else the active tab.
deltaXNo
deltaYNo
selectorNoCSS selector, "text=Sign in" (visible text), or "xpath=//button". Searches open shadow roots too.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.7/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden and it does add real value by disclosing that delta scrolling dispatches real wheel events and can trigger lazy loading — non-obvious side effects. But it is silent on whether scrolling awaits the scroll/settle, what happens when the ref or selector is not found, and what the call returns.

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?

A single dense sentence, front-loaded with the resource, that separates the three modes with a colon and parentheticals. No filler words, and every clause carries information.

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 6-parameter, zero-annotation, no-output-schema tool, this leaves meaningful gaps: tabId targeting is undocumented in the description and only partly in the schema, the left/right 'to' values are unmentioned, and failure behavior for an unresolved ref/selector is unexplained.

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?

It explains the units and identity of deltaX/deltaY (pixels, wheel events) and restricts ref/selector to the element-into-view mode, which the 50%-covered schema does not. It omits the 'left'/'right' enum values that the schema defines for 'to', and never mentions tabId, so coverage of the 6 parameters is uneven.

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?

Specific verb 'scroll' plus resource 'the page or a scrollable element', and it enumerates the three distinct invocation modes (pixel delta, 'top'/'bottom', element into view). An agent can immediately tell this is a scrolling control and not a click/hover/wait tool from the sibling list.

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 three modes imply which parameter set to use (deltas vs. 'to' vs. ref/selector), and 'triggers lazy loading' hints at the delta mode's purpose. However, there is no explicit when-to-use vs. when-not guidance, no mention of an alternative such as browser_wait_for when waiting for content, and no prerequisites stated.

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