adb_tunnel_close
Close a managed ADB tunnel by ID or all at once, removing its forward/reverse entry and cleanup registration.
Instructions
Close a managed tunnel by ID, or all managed tunnels at once. The corresponding adb forward/reverse entry is removed and the tunnel is dropped from the cleanup registry. Use adb_tunnel_list to see active tunnel IDs.
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": {
"id": "<id>"
},
"name": "adb_tunnel_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Tunnel ID (tun_XXXXXX) returned by adb_tunnel_open, or the literal string 'all' to close every managed tunnel. |