forward_port
Publish a sandbox port on a raw public TCP port, for anything that is not HTTP — a database, an SSH daemon, a game server. The reply carries the public host:port to connect to. The preview URL is the right answer for web apps; this is the escape hatch below it, and it carries no credential of its own, so the sandbox must be visible to the org rather than private. Plans cap how many ports one sandbox may publish.
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": {
"sandbox_id": "<sandbox_id>",
"port": "<port>"
},
"name": "forward_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udp | No | also forward UDP (Firecracker only; default TCP only) | |
| port | Yes | the port inside the sandbox to publish | |
| sandbox_id | Yes | sandbox id, e.g. sb_ab12cd |