Describe a sandbox's screen

Whether the screen can be shown and driven now, its size, the image formats and whether it has an accessibility tree, the takeover in force, the recording, and how many people watch.

GET/v1/sandboxes/{sandbox_id}/screen

Not available yet Seeing and acting on a sandbox's screen is not offered yet. Commands, files and ports work today.

Whether the screen can be shown and driven now, its size, the image formats and whether it has an accessibility tree, the takeover in force, the recording, and how many people watch. A sandbox with no screen answers with unavailable set rather than an error, so a page can say why. Needs no video encoder.

A key with the screen:read scope.

Request

curl "https://api.pod.mapier.ai/v1/sandboxes/sbx_3ahrz6dmv29gqy5ckt18fpx4b/screen" \
  -H "Authorization: Bearer $POD_API_KEY"

Parameters

NameInTypeRequiredWhat it is
sandbox_idpathstringYes

Answer

200. The screen.

200
{
  "sandbox": "sbx_3ahrz6dmv29gqy5ckt18fpx4b",
  "system": "linux",
  "unavailable": null,
  "width": null,
  "height": null,
  "input": false,
  "tree": false,
  "image_formats": ["png"],
  "frame_seq": null,
  "tee": false,
  "recording": {
    "on": false,
    "mask_typing": false,
    "recording": null
  },
  "takeover": null,
  "watchers": 0
}
FieldTypeAlwaysWhat it is
sandboxstringYes
system"linux"Yes
unavailable"no_desktop" | "not_running" | "tee_off" | "restarting" | nullYesnull when the screen can be shown and driven.
widthinteger | nullYesAt least 1.
heightinteger | nullYesAt least 1.
inputbooleanYesWhether actions reach the screen.
treebooleanYesWhether getScreenTree answers on this system.
image_formats"png" | "jpeg"[]Yes
frame_seqinteger | nullYesThe newest frame's number, for unless_unchanged_since. At least 0.
teebooleanYesA TEE sandbox whose screen a person switched on; Pod's software can see it.
recordingScreenRecordingSettingsYes
takeoverTakeover | nullYes
watchersintegerYesPeople watching now. At least 0.

Errors

The refusals this call is known for: not_found, in_other_cell. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptsandbox.screen.describe()
Pythonsandbox.screen.describe()