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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID to scroll | |
| direction | Yes | Scroll direction | |
| amount | No | Scroll amount in pixels. Default: 300 | |
| smooth | No | Smooth scroll. Default: false | |
| selector | No | Scrollable element selector. Default: window | |
| scrollToEnd | No | Scroll to end in given direction. Default: false | |
| waitAfterMs | No | Wait after scroll in ms. Default: 0 |