滚动页面
browser_scrollScroll 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
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab id (default: active tab) | |
| amount | No | Pixels to scroll (default 700, max 3000) | |
| snapshot | No | Return an incremental snapshot after the action (default true) | |
| direction | Yes | Scroll direction |