scroll
Scroll a page, container, or element into view. Tracks position and content growth to detect lazy-loaded content. Avoids manual JavaScript scroll methods.
Instructions
Scroll the page, a container, or an element into view. Returns position and content-growth tracking (scrollHeight grew by Npx — useful for detecting lazy-loaded content). Do NOT scroll with evaluate(window.scrollTo/scrollBy) — scroll handles position tracking and settle timing automatically. Use container_ref/container_selector + direction to scroll inside a specific container.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref to scroll into view (e.g. 'e42') | |
| selector | No | CSS selector to scroll into view (e.g. '#item-30') | |
| container_ref | No | Scrollable container ref — scroll this container instead of the page (e.g. 'e10') | |
| container_selector | No | Scrollable container CSS selector (e.g. '.sidebar-list') | |
| direction | No | Scroll direction (when no ref/selector given). Default: down | |
| amount | No | Pixels to scroll (default: 500). Only used with direction. |