Skip to main content
Glama

滚动页面

browser_scroll

Scroll the active page vertically or horizontally, report real before/after position and whether movement occurred, then return an incremental snapshot to inspect off-screen content.

Instructions

Scroll the page (window first, then the largest scrollable area in the requested direction). Returns the real before/after position, didScroll, atLimit and visibilityState: a scroll that did not move the page reports didScroll:false with a reason instead of a success message. Useful before re-snapshotting content outside the viewport.

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
tabIdNoTab id (default: active tab)
amountNoPixels to scroll (default 700, max 3000)
snapshotNoReturn an incremental snapshot after the action (default true)
directionYesScroll direction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by describing the scroll target resolution order and the exact return contract: real before/after position, didScroll, atLimit, visibilityState. Crucially it discloses that a no-op scroll reports didScroll:false with a reason rather than a success message, which prevents an agent from misreading a failed scroll—context the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false) do not supply.

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?

Three sentences with a clear order: what it does and how it targets, what it returns and the failure semantics, then when to use it. No filler sentences; each clause carries distinct 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?

With no output schema, the description correctly takes on the burden of explaining return fields and the didScroll failure case. However, it does not say how the returned visibilityState/atLimit values should be interpreted, nor whether scroll waits for animation or affects any layout-shift behavior the agent should expect.

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 defaults (700, max 3000) and the direction enum are already documented. The description adds no per-parameter nuance beyond the general window-first targeting behavior, so baseline 3 applies.

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?

States a specific verb+resource ("Scroll the page") and adds a targeting strategy—window first, then the largest scrollable area in the requested direction—which the agent could not infer otherwise. It does not name a sibling alternative (e.g. browser_page_state or key-based paging), so it falls short of full differentiation.

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

Usage Guidelines4/5

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

Gives a concrete use case: "Useful before re-snapshotting content outside the viewport," which tells the agent when scrolling is the right move in a sequence. It omits when-not-to-use conditions and does not point to any alternative tool.

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