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.
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": {
"port": "<port>"
},
"name": "expose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| host_port | No | ||
| sandbox | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |