swipeOnScreen
Perform automated screen swipes in specified directions for mobile app testing on Android and iOS devices.
Instructions
Swipe on screen in a specific direction
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>",
"includeSystemInsets": "<includeSystemInsets>",
"duration": "<duration>",
"platform": "<platform>"
},
"name": "swipeOnScreen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | Yes | Direction to swipe | |
| includeSystemInsets | Yes | Whether to include system inset areas in the swipe | |
| duration | Yes | Duration of the swipe in milliseconds | |
| platform | Yes | Platform of the device |