expose
Create a local TCP proxy that forwards a sandbox port to localhost, enabling local connections to services inside the sandbox.
Instructions
Forward a sandbox port to localhost via TCP proxy.
Creates a local listener that proxies connections into the sandbox via container exec.
Args: port: Port number inside the sandbox (e.g., 8000, 3000, 5432). host_port: Port to listen on locally (default: same as sandbox port). sandbox: Named sandbox to expose (default "default").
Returns: Connection URL if successful, or error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| host_port | No | ||
| sandbox | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |