Send input
inputSimulate device UI actions such as taps, swipes, text typing, and key presses at specified coordinates to automate Android app testing and control.
Instructions
Drive the device UI: tap or long-press at coordinates, swipe, type text, or press a key (BACK, HOME, ENTER, APP_SWITCH, DEL, or any KEYCODE_*). Get coordinates from ui_dump.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| x2 | No | Swipe end x | |
| y2 | No | Swipe end y | |
| key | No | Key name or keycode (for action=key) | |
| text | No | Text to type (for action=text) | |
| action | Yes | ||
| serial | No | Device serial from devices_list. Optional when exactly one device is online. | |
| durationMs | No | Swipe / long-press duration |