swipe
Perform horizontal or vertical swipes on Android screens using directional commands or custom coordinates to navigate interfaces and interact with apps.
Instructions
Swipe horizontally or vertically on the Android screen.
Args:
direction: 'left', 'right', 'up', 'down' for directional swipes
x1, y1, x2, y2: Exact coordinates for custom swipes
device_id: Optional device ID to target specific device/emulator
distance: Distance of swipe in pixels (default: 50% of screen dimension)
duration: Duration of swipe in milliseconds (default: 300ms)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
device_id | No | ||
direction | No | ||
distance | No | ||
duration | No | ||
x1 | No | ||
x2 | No | ||
y1 | No | ||
y2 | No |
Input Schema (JSON Schema)
{
"properties": {
"device_id": {
"default": null,
"title": "Device Id",
"type": "string"
},
"direction": {
"default": null,
"title": "Direction",
"type": "string"
},
"distance": {
"default": null,
"title": "Distance",
"type": "integer"
},
"duration": {
"default": 300,
"title": "Duration",
"type": "integer"
},
"x1": {
"default": null,
"title": "X1",
"type": "integer"
},
"x2": {
"default": null,
"title": "X2",
"type": "integer"
},
"y1": {
"default": null,
"title": "Y1",
"type": "integer"
},
"y2": {
"default": null,
"title": "Y2",
"type": "integer"
}
},
"title": "swipeArguments",
"type": "object"
}