adb_input
Send tap, swipe, text, and keyevent input to an Android device through ADB to automate UI interaction and device control.
Instructions
Send input events to the device (tap, swipe, text, keyevent)
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": {
"type": "<type>",
"args": "<args>"
},
"name": "adb_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Arguments: tap='x y', swipe='x1 y1 x2 y2 [duration_ms]', text='string', keyevent='KEYCODE_HOME' | |
| type | Yes | Input type — one of: tap (single touch), swipe (drag between two points), text (literal string entry), keyevent (Android key code like KEYCODE_HOME). The args field documents the expected argument format per type. | |
| device | No | Device serial |