Skip to main content
Glama
browser-stream

browser-stream

by sgreen7979

browser_scroll

Scrolls the viewport or nearest scrollable ancestor of a referenced element, with direction and optional page, top/bottom, or pixel amount controls.

Instructions

Scroll the viewport or the nearest scrollable ancestor of a ref.

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": {
      "direction": "<direction>"
    },
    "name": "browser_scroll"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoOptional element ref inside target scroll container
amountNoAmount: "page", "to-top", "to-bottom", or pixel count
directionYesScroll direction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure, and it does clarify that the scroll target resolves to the viewport or the nearest scrollable ancestor of a ref. However, it does not state what happens if no scrollable ancestor exists, whether scrolling is instant or animated, or what the tool 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?

The description is a single front-loaded sentence with no filler and no repetition. It is appropriately sized for a simple three-parameter tool.

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?

The tool is simple, has full schema coverage, and no output schema, so the description covers the essential action and target resolution. It leaves minor edge-case behavior undocumented, but an agent has enough to invoke it correctly.

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%, so the schema already documents direction, amount, and ref. The description adds a little meaning by explaining the ref is used to find the nearest scrollable ancestor, but it does not add syntax or behavioral detail beyond the schema.

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 gives a specific verb and resource: scroll the viewport or the nearest scrollable ancestor of a ref. That is enough to distinguish it from sibling tools like click, fill, or snapshot, though it does not explicitly contrast with script execution or key presses that could also scroll.

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 purpose: use it to scroll the viewport or a target element's scroll container. There is no explicit when-to-use or when-not-to-use guidance, and no mention of alternatives such as browser_execute_script or browser_press_key.

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