adb_forward
Forward a local host port to a port on an Android device to connect to services running on the device. Use it when you need host-to-device port mapping for debugging or service access.
Instructions
Forward a local port to a port on the device (host → device). Use for connecting to services running on the device.
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": {
"local": "<local>",
"remote": "<remote>"
},
"name": "adb_forward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local | Yes | Local (host) spec, e.g., 'tcp:8080'. AF2 fix: format-validated. | |
| device | No | Device serial | |
| remote | Yes | Remote (device) spec, e.g., 'tcp:8080' or 'localabstract:app_socket'. AF2 fix: format-validated. |