swipe
Trigger a swipe gesture on an Android device screen by specifying start and end coordinates, duration, and device serial. Ideal for UI automation and testing scenarios involving touch interactions.
Instructions
Perform a swipe gesture from one point to another on the device screen.
Args: serial: Device serial number start_x: Starting X coordinate start_y: Starting Y coordinate end_x: Ending X coordinate end_y: Ending Y coordinate ctx: Context duration_ms: Duration of the swipe in milliseconds (default: 300)
Returns: The result of the swipe operation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
duration_ms | No | ||
end_x | Yes | ||
end_y | Yes | ||
serial | Yes | ||
start_x | Yes | ||
start_y | Yes |