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.
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": {
"action": "<action>"
},
"name": "input"
}
}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 |