tenki_open_preview
Open a viewer-token-gated preview for a sandbox port, returning a token that grants access through another resolver. Requires allow_inbound.
Instructions
Open a viewer-token-gated (AUTHENTICATED-mode) preview. USE tenki_expose_port OR tenki_create_preview_url INSTEAD for an ordinary web server: for any port other than the web terminal (7681) the API deliberately returns a non-regional fallback host that currently has no edge route, so the URL 404s (live-verified). The returned viewerToken does resolve via tenki_resolve_preview_token; only the URL is unreachable. Requires allow_inbound.
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": {
"session_id": "<session_id>",
"port": "<port>"
},
"name": "tenki_open_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | The TCP port inside the sandbox to open a preview for (1-65535). | |
| expires_at | No | Optional RFC-3339 timestamp at which the preview auto-expires. Omit to keep it until the sandbox ends. | |
| session_id | Yes | The sandbox session serving the port. |