Pair device
adb_pairPair an Android 11+ device over Wireless Debugging with its IP:port and 6-digit code, enabling later ADB reconnections without pairing again.
Instructions
Pair with an Android 11+ device over Wireless Debugging, once per device and computer; afterwards adb_connect alone reconnects. On the device: Developer options -> Wireless debugging -> "Pair device with pairing code" shows ip:port and a 6-digit code. The pairing port is random and differs from the connect port; after pairing succeeds, call adb_connect with the ip:port shown on the main Wireless debugging screen.
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": {
"host": "<host>",
"code": "<code>"
},
"name": "adb_pair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 6-digit pairing code from the dialog | |
| host | Yes | ip:port from the pairing dialog (random port, NOT 5555) |