Scroll
scrollMove the viewport up, down, left, or right by line counts over an element to reveal off-screen content before reading UI state or capturing a screenshot; it does not click or select.
Instructions
Scroll up, down, left or right by a number of lines, over element_id when given so the right pane scrolls. Use it to bring off-screen content into view before get_app_state or screenshot. It only scrolls; nothing is clicked or selected. On macOS it scrolls the target app in the background without moving the user's pointer. On Windows and Linux, without element_id it scrolls whatever is under the user's pointer, and an element with no background route gets the real pointer moved onto it (the result then says via cursor).
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": "scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Screen x to scroll over. Remote control only: the pointer moves there first. Ignored otherwise. | |
| y | No | Screen y to scroll over. Remote control only: the pointer moves there first. Ignored otherwise. | |
| amount | No | Number of scroll lines, 1 to 100 (default 5) | |
| direction | No | Scroll direction (default down) | |
| element_id | No | Element to scroll, from get_app_state; the nearest scrollable area around it moves. Omit to scroll the last inspected app (macOS) or whatever is under the pointer (Windows, Linux). | |
| state_query | No | With return_state, list only elements whose role, label or value contains this text, like get_app_state's query | |
| return_state | No | After acting, wait for the app to finish reacting (up to 2 s) and append a fresh get_app_state of the app you last read, so you can check the result and pick the next target in the same call. Its ids replace every earlier id. |