scroll
Move a page or scroll container up or down by a specified amount, targeting specific nodes, selectors, or viewport coordinates, and returns scroll positions to confirm the result.
Instructions
Scroll the active tab by a delta (positive scrollY scrolls down). By default scrolls the page reliably regardless of layout; pass node_id to scroll inside a specific scroll container, x+y to send a mouse wheel at a viewport point, or selector to scrollIntoView a specific element. Returns before/after scroll position, pageHeight, and nearBottom. On virtualized lists (e.g. Discourse post streams) use small steps (<= ~2 viewports) and extract between steps, or content will be skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Optional viewport X for a wheel-at-point scroll. | |
| y | No | Optional viewport Y for a wheel-at-point scroll. | |
| tab_id | No | Optional tab id. | |
| node_id | No | Optional node id (from snapshot) of a scroll container. | |
| scrollX | No | Horizontal delta (default 0). | |
| scrollY | No | Vertical delta, positive = down (default 600). | |
| selector | No | Optional CSS selector: scrollIntoView the first matching element instead of scrolling by delta. |