scroll
Move an app view up, down, left, or right by element index or screenshot coordinates; returns updated text or a fresh screenshot for verification.
Instructions
Scroll an observed element or fresh screenshot coordinate. Returns current state: text for indexed input, plus a new screenshot for coordinate input.
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": {
"app": "<app>",
"direction": "<direction>"
},
"name": "scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X pixel coordinate in the most recently returned app-window screenshot; requires a screenshot after the last UI action. | |
| y | No | Y pixel coordinate in that same app-window screenshot. | |
| app | Yes | App name or full app path; macOS bundle ID; macOS and Windows pid:<pid>; Windows process name, window title fragment, or Start-menu shortcut name; Linux desktop entry name, executable name or window title fragment | |
| pages | No | ||
| scope | No | macOS and Windows: element index from the latest returned state. Read only its retained subtree, renumbered from [1], including after actions. If it disappears, return the whole window with a notice. Linux returns INVALID_ARGUMENT. | |
| direction | Yes | ||
| element_index | No | Element index from the latest returned app state |