reverse_port
Map a device TCP port to a host port so app traffic to 127.0.0.1 on the device reaches your PC, enabling local API or CDN shims.
Instructions
adb reverse tcp:device tcp:host — map a DEVICE port to a HOST port so the
app's 127.0.0.1:<device_port> traffic reaches your PC (e.g. a local API/CDN shim).
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": {
"device_port": "<device_port>",
"host_port": "<host_port>"
},
"name": "reverse_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | ||
| host_port | Yes | ||
| device_port | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||