swipeOnElement
Perform swipe gestures on mobile app elements for automated testing. Specify direction, duration, and platform to simulate user interactions in Android and iOS applications.
Instructions
Swipe on a specific element
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": {
"elementId": "<elementId>",
"direction": "<direction>",
"duration": "<duration>",
"platform": "<platform>"
},
"name": "swipeOnElement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| containerElementId | No | Container element ID to restrict the search within | |
| elementId | Yes | ID of the element to swipe on | |
| direction | Yes | Direction to swipe | |
| duration | Yes | Duration of the swipe in milliseconds | |
| platform | Yes | Platform of the device |