android-use
v0.2.0Let AI agents see and control an Android phone over ADB, with safety guards.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_devices
List connected ADB devices (filtered by ADB_SERIAL allowlist if set)
connect_wifi
Connect to a device over Wi-Fi. For Android 11+ wireless debugging, pass pairing_code and pair_port (from 'Pair device with pairing code') to pair first.
| Parameter | Type | Description |
|---|---|---|
host * | string | |
pair_port | integer | |
pairing_code | string | |
port | integer |
screenshot
Take a screenshot (PNG)
| Parameter | Type | Description |
|---|---|---|
serial | string | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |
get_screen_size
Get screen resolution in pixels
| Parameter | Type | Description |
|---|---|---|
serial | string | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |
tap
Tap at pixel coordinates
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer | |
serial | string | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |
swipe
Swipe from (x1,y1) to (x2,y2) over ms milliseconds
| Parameter | Type | Description |
|---|---|---|
x1 * | integer | |
x2 * | integer | |
y1 * | integer | |
y2 * | integer | |
ms | integer | |
serial | string | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |
long_press
Long-press at coordinates
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer | |
ms | integer | |
serial | string | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |
type_text
Type text into the focused field (printable ASCII)
| Parameter | Type | Description |
|---|---|---|
text * | string | |
serial | string | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |
key_event
Send a key event. Names: home, back, call, endcall, up, down, left, right, center, volume_up, volume_down, power, camera, tab, enter, delete, menu, search, play_pause, mute, recents, app_switch, wakeup, sleep; or a numeric keycode
| Parameter | Type | Description |
|---|---|---|
key * | string | |
serial | string | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |
open_app
Launch an app by package name
| Parameter | Type | Description |
|---|---|---|
package * | string | |
serial | string | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |
list_apps
List installed packages (third-party by default)
| Parameter | Type | Description |
|---|---|---|
filter | string | |
include_system | boolean | |
serial | string | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |
current_app
Get the foreground app package
| Parameter | Type | Description |
|---|---|---|
serial | string | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |
ui_dump
Dump the UI hierarchy as a compact list of clickable/labelled elements with bounds and center coordinates
| Parameter | Type | Description |
|---|---|---|
serial | string | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |
tap_element
Find an element by text/content-desc (substring, case-insensitive) or resource-id and tap its center
| Parameter | Type | Description |
|---|---|---|
index | integer | Which match to tap if several |
resource_id | string | |
serial | string | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |
text | string |