Expose port
expose_portExpose a machine's TCP port as a private HTTPS preview URL, restricted to signed-in account members or preview token holders.
Instructions
Expose a TCP port of a machine (e.g. a dev server on 3000) at a private https preview URL. Only signed-in members of the account (or holders of a preview token) can open it.
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": {
"machine_id": "<machine_id>",
"port": "<port>"
},
"name": "expose_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | TCP port the server listens on in the machine. | |
| label | No | Optional label shown in the panel. | |
| machine_id | Yes | Machine id (machine_id from create_machine or list_machines). |