tenki_create_preview_url
Generate a public preview URL to expose a TCP port from a sandbox, using a custom slug and optional expiration time for secure sharing.
Instructions
Create a shareable public preview URL for a port in a sandbox. The sandbox must have inbound networking enabled (create it with 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>",
"slug": "<slug>"
},
"name": "tenki_create_preview_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | The TCP port inside the sandbox to create a preview URL for (1-65535). | |
| slug | Yes | Subdomain slug for the preview URL (3-63 chars, lowercase letters/digits/hyphens, no leading/trailing hyphen). | |
| expires_at | No | Optional RFC-3339 timestamp at which the preview URL auto-expires. Omit to keep it until the sandbox ends. | |
| session_id | Yes | The sandbox session serving the port. |