browser_scroll
Scrolls the page or a specified element into view. Supports direction, pixel amount, and CSS selector for targeted scrolling.
Instructions
Scroll the page or scroll an element into view.
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": {
"session_id": "<session_id>"
},
"name": "browser_scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session ID | |
| direction | No | Scroll direction (up, down, left, right, top, bottom) | down |
| amount | No | Pixels to scroll (for up/down/left/right) | |
| selector | No | Element to scroll into view (optional, overrides direction) | |
| by | No | Selector type if selector is provided | css |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |