List devices
adb_devicesList connected Android devices and remembered offline addresses so you can choose a serial for other ADB tools. If your target is missing, run again with discover=true to search the local network.
Instructions
List connected Android devices with serial, state and description (adb devices -l), and remembered addresses that are not connected now. Start here: the other tools take serial from this list. If the device the user means is not in the list, call again with discover=true: it searches the local network for devices to connect (mDNS and port 5555), any time and as often as needed, and connects none of them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "adb_devices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| discover | No | Search the local network (about 10 s) for devices with network or Wireless debugging on; returns candidates and the next step for each. Default false. |