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
displayintegerWhich display, from 0 (default). A machine on the OSMates engine can have up to 4; input goes to display 0.
From 0 to 3.
formatstringDefault jpeg.
One of
jpeg,png.max_long_edgeintegerLongest side of the image in pixels; default 1280.
From 256 to 2576.
quiet_msintegerFor stable: how long without a new frame; default 500.
From 50 to 10000.
screenshotbooleanDefault true.
since_framestringA frameId from an earlier result. A frame from before the display last changed size, or before the machine started again, counts as changed.
timeout_secondsintegerDefault 10.
From 0 to 30.
untilstringDefault changed.
One of
changed,stable.vmstringRequiredThe 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
frameIdstringRequiredsatisfiedbooleanRequiredscreenshotobjectscreenshot.displayintegerAt least 0.
screenshot.displayHeightintegerRequiredAt least 0.
screenshot.displayWidthintegerRequiredAt least 0.
screenshot.formatstringRequiredOne of
png,jpeg.screenshot.frameIdstringscreenshot.heightintegerRequiredAt least 0.
screenshot.regionarray of integersExactly 4 items.
screenshot.scalenumberRequiredscreenshot.widthintegerRequiredAt least 0.