port_forward
List, add, or remove ADB forward/reverse mappings for TCP, local abstract, local filesystem, or JDWP endpoints; use tcp:0 to allocate a port without replacing another debugger's mapping.
Instructions
ADB forward/reverse list/add/remove for tcp/localabstract/localfilesystem/jdwp endpoints. tcp:0 allocates a port. No host shell; no-rebind avoids replacing another debugger's mapping.
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": "port_forward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local | No | ||
| action | No | list | |
| remote | No | ||
| reverse | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||