Request an invite
Docs menu

screen_wait

Wait for a virtual machine's screen.

Waits until the screen changes after since_frame (default: the frame when called), or until it has been still for quiet_ms, up to timeout_seconds, and returns a screenshot unless screenshot is false.

Profiles
read-only, operator, full
Read-only
Yes
Destructive
No
Idempotent
Yes
Open world
No
Runs as a task
No

Parameters

displayinteger

Which display, from 0 (default). A machine on the OSMates engine can have up to 4; input goes to display 0.

From 0 to 3.

formatstring

Default jpeg.

One of jpeg, png.

max_long_edgeinteger

Longest side of the image in pixels; default 1280.

From 256 to 2576.

quiet_msinteger

For stable: how long without a new frame; default 500.

From 50 to 10000.

screenshotboolean

Default true.

since_framestring

A frameId from an earlier result. A frame from before the display last changed size, or before the machine started again, counts as changed.

timeout_secondsinteger

Default 10.

From 0 to 30.

untilstring

Default changed.

One of changed, stable.

vmstringRequired

The machine's name or identifier, as vm_list shows it.

Output

The result's structured content is an object with these fields.

JSON Schema: /schemas/0/mcp/tools/screen_wait/output.json

frameIdstringRequired
satisfiedbooleanRequired
screenshotobject
screenshot.displayinteger

At least 0.

screenshot.displayHeightintegerRequired

At least 0.

screenshot.displayWidthintegerRequired

At least 0.

screenshot.formatstringRequired

One of png, jpeg.

screenshot.frameIdstring
screenshot.heightintegerRequired

At least 0.

screenshot.regionarray of integers

Exactly 4 items.

screenshot.scalenumberRequired
screenshot.widthintegerRequired

At least 0.

Report a problem with this page