lightweight_scroll
Scroll a web page or element in any direction. Control pixel amount, smooth scrolling, or scroll to end. Returns new scroll position.
Instructions
Scroll page via JS. Returns new scroll position.
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>",
"direction": "<direction>"
},
"name": "lightweight_scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID to scroll | |
| amount | No | Scroll amount in pixels. Default: 300 | |
| smooth | No | Smooth scroll. Default: false | |
| selector | No | Scrollable element selector. Default: window | |
| direction | Yes | Scroll direction | |
| scrollToEnd | No | Scroll to end in given direction. Default: false | |
| waitAfterMs | No | Wait after scroll in ms. Default: 0 |