adb_connect
Connect to an Android device over TCP/IP for wireless debugging, or disconnect all devices. Use it to attach a phone by host:port before running shell, UI, or file commands.
Instructions
Attach a device over TCP/IP (wireless debugging): 'CONNECT phone:5555'.
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": {
"target": "<target>"
},
"name": "adb_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | host:port of the device, or empty to disconnect all | |
| pair_code | No | 6-digit pairing code (only needed once, with pair_port) | |
| pair_port | No | pairing port shown by Android's Wireless debugging screen |