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.
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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
sandbox_id | path | string | Yes |
Answer
200. The screen.
{
"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
}| Field | Type | Always | What it is |
|---|---|---|---|
sandbox | string | Yes | |
system | "linux" | Yes | |
unavailable | "no_desktop" | "not_running" | "tee_off" | "restarting" | null | Yes | null when the screen can be shown and driven. |
width | integer | null | Yes | At least 1. |
height | integer | null | Yes | At least 1. |
input | boolean | Yes | Whether actions reach the screen. |
tree | boolean | Yes | Whether getScreenTree answers on this system. |
image_formats | "png" | "jpeg"[] | Yes | |
frame_seq | integer | null | Yes | The newest frame's number, for unless_unchanged_since. At least 0. |
tee | boolean | Yes | A TEE sandbox whose screen a person switched on; Pod's software can see it. |
recording | ScreenRecordingSettings | Yes | |
takeover | Takeover | null | Yes | |
watchers | integer | Yes | People 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
| Client | Call |
|---|---|
| TypeScript | sandbox.screen.describe() |
| Python | sandbox.screen.describe() |