ui_scroll
ui_scrollScroll the page or a specified container by one viewport in any direction, or bring a selector into view. Returns when the scroll limit is reached so agents can stop looping.
Instructions
Scroll one step. With selector, bring that element into view. Otherwise scroll by one viewport height (or width) in direction (down, up, left, right, or jump to top / bottom, default down): the page, or with container the scroll area matching that selector (a chat panel, a virtual table, a carousel). The result says when the end was reached (nothing more to scroll that way): stop looping then. A page or panel with nothing to scroll is not an error. Selectors containing "nth=" are positional: call ui_get_page_state again after the page changes before reusing them.
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": "ui_scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS selector, or the `selector` value of an element from ui_get_page_state, passed unchanged; scrolls that element into view. Do not combine with container or direction | |
| container | No | Selector of the scroll area to scroll (a single element); omit to scroll the page | |
| direction | No | Which way to scroll; default down | |
| session_id | No | Which open session to act on, as returned by ui_start_session. Optional with one open session; required when several are open. |