Hanzo
OpenapiSandbox

The screen, as a socket

Upgrades to a WebSocket carrying RFB — the VNC wire protocol — from the sandbox's display, for a host that brings its own client.

GET /v1/sandbox/{id}/screen/ws

Addresshttps://api.hanzo.ai/v1/sandbox/{id}/screen/ws
MethodGET
Operationget_sandbox_by_id_screen_ws
AuthAuthorization: Bearer $HANZO_API_KEY

Upgrades to a WebSocket carrying RFB — the VNC wire protocol — from the sandbox's display, for a host that brings its own client. Requires ticket; a missing, expired or already-spent one answers 401 without upgrading.

THE WIRE IS RFB, in BINARY frames both ways, and it is not interpreted here: this is a pipe between the caller's client and the server inside the pod.

THE PIXELS COME OUT THROUGH THE EXEC CHANNEL. The display binds 127.0.0.1 only and deliberately nothing else, so there is no address to dial — socat joins the stream to that loopback port over the same Kubernetes exec subresource every other call into a sandbox uses. One way in, one thing to authorize, nothing further exposed.

The window size is ignored. A browser pane is not the X server's geometry, and the client scales what it is given rather than asking a server with no RandR to resize itself.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo sandboxes screen ws <id>

Sandbox API · All Hanzo APIs · Interactive reference

How is this guide?

On this page