swipe
Scroll mobile app interfaces in specified directions and speeds to locate elements or text during automated testing.
Instructions
Unified scroll command supporting direction and speed (no index support due to reliability)
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": {
"containerElementId": "<containerElementId>",
"direction": "<direction>",
"platform": "<platform>"
},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| containerElementId | Yes | Element ID to scroll until visible | |
| direction | Yes | Scroll direction | |
| lookFor | No | What we're searching for while scrolling | |
| speed | No | Scroll speed | |
| platform | Yes | Platform of the device |