vm_wait
Polls a UTM VM every 200 ms until a window appears, disappears, gains focus, a process exits, the screen changes, or a UAC prompt shows, returning status and wait time instead of sleeping.
Instructions
Waits (polling every 200 ms) instead of sleeping. for_: window (a visible window whose
title contains title and/or whose process is process, e.g. "notepad.exe" appears),
window_gone, foreground (that window is in front), process_exit (needs pid), screen_change
(the screen changed, then stayed still), uac (a UAC consent prompt is showing). Returns ok, waited_ms and the window if any;
ok=false on timeout.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vm": "<vm>",
"for_": "<for_>"
},
"name": "vm_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| pid | No | ||
| for_ | Yes | ||
| title | No | ||
| process | No | ||
| timeout | No |