Scroll
operagx_scrollSimulates a real mouse-wheel scroll on a page, or scrolls a specific element into view, to load more content or reveal a desired part of the page.
Instructions
Scrolls the page with a real mouse-wheel event, or scrolls a specific element into view.
Args:
tabId / tabIndex / matchUrl / matchTitle (optional): which tab.
elementId / selector (optional): if given, scrolls that element into view instead of wheel-scrolling the page.
deltaX / deltaY (number, default 0): wheel scroll amount in CSS pixels, used only when no elementId/selector is given.
Returns: Either { "ok": true, "scrolledTo": { "x": number, "y": number, "selector"?: string } } or { "ok": true, "delta": { "x": number, "y": number } }
Examples:
Use when: "scroll down to load more results" -> scroll with deltaY=800.
Use when: "scroll the footer link into view" -> scroll with that link's elementId.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "operagx_scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab id from operagx_list_tabs. Omit to use the first open tab. | |
| deltaX | No | ||
| deltaY | No | ||
| matchUrl | No | Pick the tab whose URL contains this substring. | |
| selector | No | ||
| tabIndex | No | Zero-based tab index, alternative to tabId. | |
| elementId | No | ||
| matchTitle | No | Pick the tab whose title contains this substring. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| delta | No | ||
| scrolledTo | No |