Collect while scrolling
collect_scrollCollect elements from scrollable pages by scrolling in bounded steps, extracting matches, and stopping early via until conditions. Supports nested scroll containers.
Instructions
Scroll a bounded number of steps (hard ceiling when until is set), extract selected elements each step, optionally target a nested scroll container, and optionally stop early via until conditions. Results include stoppedReason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Optional act-then-observe requests, run after the page action in waitFor, snapshot, pageStatus order. | |
| steps | Yes | Maximum scroll/extract steps. Hard ceiling when until is set. | |
| tabId | No | Optional Chrome tab id. Defaults to the claimed session tab, then the active tab. | |
| until | No | ||
| deltaY | No | Legacy window scroll deltaY when scroll is omitted. | |
| scroll | No | Scroll target for each step. When set, overrides top-level deltaY. Pass x/y to scroll a nested overflow container under that point. | |
| delayMs | No | ||
| extract | Yes | ||
| dedupeBy | No | ||
| maxItems | No | ||
| documentId | No | Exact frame document id returned by list_frames. Omit to target the current top document. | |
| sessionTabId | No | Optional claimed tab session id returned by claim_tab. |