Expose a sandbox port on a public HTTPS URL
host_portPublish a sandbox port at a stable public HTTPS URL, optionally token-gated, and open the sandbox firewall so external clients can reach the service.
Instructions
Expose a sandbox port on a public HTTPS URL. Registers a stable https://<sandbox-subdomain>-<port>.on.boat.dev route for a port inside the sandbox and opens the sandbox firewall for it. Idempotent: calling it again for the same sandbox and port returns the same URL and token. On a sandbox with network.inbound boat-only, only a caller outside the sandbox can publish: a session, or an API key that does not live in a sandbox. The key that lives in the sandbox, and any request that a sandbox with a network policy sends, get 403 inbound_closed. With public: true the URL carries no token; the raw port stays closed.
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": {
"sandboxId": "<sandboxId>",
"port": "<port>"
},
"name": "host_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port the service listens on inside the sandbox. | |
| title | No | Display title for the hosted port. | |
| public | No | Return an ungated URL instead of one that requires the `_token` query parameter. | |
| localhost | No | Set when the service listens on localhost (`127.0.0.1` or `::1`) only. The sandbox relays the URL to it. Leave unset for a service bound to `0.0.0.0`. Each call sets the value again. | |
| sandboxId | Yes | Public Sandbox id returned by create/list/get sandbox calls. |