Skip to main content
Glama

browser_scroll_by_pixels

Scrolls the browser viewport by an exact number of horizontal and vertical pixels to reach off-screen content or position page elements precisely.

Instructions

Scroll by a specific number of pixels

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "x": "<x>",
      "y": "<y>"
    },
    "name": "browser_scroll_by_pixels"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesNumber of pixels to scroll horizontally
yYesNumber of pixels to scroll vertically

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed2 schema fields changedv1.0.0
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses almost nothing beyond the one-line action. It does not say whether the offset is relative to the current scroll position, whether negative values scroll in the opposite direction, whether the call waits for smooth scrolling to settle, or what happens if the scroll hits a page boundary.

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?

A single, front-loaded sentence with zero wasted words, which makes the action immediately legible. It is arguably under-specified rather than verbose, but there is no structural bloat to penalize.

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 simple two-parameter, fully schema-documented tool this is close to adequate, and no output schema exists to describe. Still, with no annotations and no mention of sign handling, relative-vs-absolute semantics, or boundary behavior, an agent cannot call it confidently in an edge case.

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 description coverage is 100%, and the two parameters (x, y) are already documented as horizontal and vertical pixel counts, so the baseline of 3 applies. The description adds no meaning beyond the schema — no acceptable ranges, sign conventions, or units beyond "pixels."

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 ("Scroll by a specific number of pixels"), which is far clearer than a bare name. However, it never distinguishes itself from the many sibling scroll tools (browser_scroll_to_element, browser_scroll_to_coordinates, browser_scroll_to_bottom), so an agent must infer that this is a relative-delta scroll rather than a target-based one.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named. The only clue that separates this from the to_element/to_coordinates/to_bottom siblings is the phrase "by a specific number of pixels," which implies relative movement but is left for the agent to infer.

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