Scroll
browser_scrollScroll a page in a chosen direction or bring an element into view using a ref or selector, with an optional accessibility snapshot afterward.
Instructions
Scroll the page (or scroll an element into view when ref/selector is given).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from browser_snapshot, e.g. "e12" | |
| pixels | No | Default 600 | |
| selector | No | Playwright selector (CSS, text=..., role=..., xpath=...) used when no ref is given | |
| snapshot | No | Return an accessibility snapshot of the page after the action (default from BROWSER_MCP_SNAPSHOT_AFTER_ACTIONS) | |
| direction | No |