Forward a host port to the device
forward_portCreate an ADB port forward from host to Android device to reach device-side app HTTP or debug servers from host-only test tools.
Instructions
Create a port forward from the host to the device (adb forward), e.g. local "tcp:8080" to remote "tcp:8080". Use it to reach a device-side server (app HTTP server, debug port) from host-only test tooling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local | Yes | Host-side spec, e.g. "tcp:8080". | |
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| remote | Yes | Device-side spec, e.g. "tcp:8080" or "localabstract:webview_devtools_remote". | |
| no_rebind | No | Pass --no-rebind to fail instead of replacing an existing forward (default false). |