browser_scroll
Scroll web pages or containers using CSS selectors, directional commands, or absolute positions to navigate content and access hidden elements.
Instructions
[Disabled] Scroll the page or a scrollable container. Three modes: (1) provide a CSS selector to scroll that element into view (centered), (2) provide a direction (up/down/left/right) with optional distance in pixels to scroll relatively (defaults to one viewport height/width), (3) provide a position {x, y} to scroll to absolutely. If none are provided, returns the current scroll position without scrolling. Use the optional container parameter to scroll within a specific scrollable element instead of the page. Returns scroll position, total scroll size, and viewport size so you know how much more content exists.
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": {
"tabId": "<tabId>"
},
"name": "browser_scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID of the page to interact with | |
| selector | No | CSS selector of element to scroll into view (uses scrollIntoView with block: "center") | |
| direction | No | Direction to scroll relatively. Defaults to one viewport height (up/down) or width (left/right). | |
| distance | No | Distance in pixels for relative scrolling. Defaults to viewport height (up/down) or width (left/right). | |
| position | No | Absolute scroll position to scroll to | |
| container | No | CSS selector of a scrollable container to scroll within instead of the page |