scroll
Navigates scrollable device content in any direction or to the top/bottom edges, and can reach an off-screen element by selector instead of repeated gesture-and-check loops.
Instructions
Scroll in a direction, or toward the top/bottom edge of scrollable content. Set until to a selector to reach an off-screen target in one command rather than a scroll-and-check loop. The optional amount is the finger-path fraction of the viewport axis, honored up to 0.8 of it; directional scrolls reduce release momentum, while app scroll physics determine the final content offset. A visible keyboard shortens the swiped band instead of being dismissed; when too little is left, the command refuses with scroll_keyboard_occludes_surface. A directional scroll also reports the movement it observed as movement: moved, at-edge, unchanged, or unobserved when the two reads could not back a claim either way; an unchanged surface inside a container that still hides content in that direction refuses with scroll_no_progress rather than repeating the requested distance. The movement field is absent where a tier verifies per pass (top/bottom, until), where the runtime cannot read a screen, where a settle observation or a replay already owns that observation, or where the operator opted out of it. Times out after 90s; a caller-supplied budget extends it.
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": {
"direction": "<direction>"
},
"name": "scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | No | Apple device or simulator UDID. | |
| debug | No | Enable debug diagnostics. | |
| until | No | Repeat scroll passes until this selector is visible on screen, then stop. Not valid with the top/bottom edge directions, which carry their own stop condition. | |
| amount | No | Platform scroll amount. | |
| device | No | Device name; ids go in udid or serial. | |
| pixels | No | Pixel scroll amount. | |
| serial | No | Android, HarmonyOS, or Vega VVD serial. | |
| settle | No | After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action. | |
| target | No | Alias for deviceTarget. | |
| session | No | Session name. | |
| noRecord | No | Do not record this action. | |
| platform | No | Device platform. | |
| direction | Yes | ||
| maxPasses | No | Maximum scroll gestures for an until search (default 12). Requires until. | |
| timeoutMs | No | Settle: wait deadline in milliseconds (default 10000). | |
| durationMs | No | Scroll duration in milliseconds when the backend supports pacing. | |
| includeCost | No | Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text. | |
| deviceTarget | No | Device form factor. | |
| responseLevel | No | Result detail: digest (smallest) or full (largest), as JSON; default is compact text. | |
| settleQuietMs | No | Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs. | |
| mcpOutputFormat | No | Result text: compact optimized (default) or the full result as JSON (larger). |