camofox_scroll_element_and_snapshot
Scroll a container element and capture a snapshot to incrementally load lazy content in modals, returning both scroll position and page state.
Instructions
Scroll a container element AND take a snapshot. Combines scroll_element + snapshot in one call. Perfect for incrementally loading lazy content in modals (e.g. Facebook group post comments). Returns both scroll position and page snapshot.
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>"
},
"name": "camofox_scroll_element_and_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from snapshot | |
| tabId | Yes | Tab ID | |
| deltaY | No | Scroll delta | |
| waitMs | No | Wait before snapshot (ms) | |
| selector | No | CSS selector for scrollable container |