vm_uac
Inspect and respond to Windows UAC secure-desktop prompts on UTM VMs: read dialog details and screenshot, then allow or deny; credential prompts can only be denied.
Instructions
Answers a UAC consent prompt (the secure desktop that screenshots and ordinary windows
can't reach). Waits up to timeout seconds for one. inspect: the dialog's program, publisher,
file, prompt_kind (consent / credentials), buttons and every text, plus a screenshot of it.
allow / deny: clicks Yes / No and waits for the desktop to come back. Credential prompts (a
non-admin user) can only be denied; allow is refused. To test the flow, start an elevation as the user, e.g.
vm_run_user(["powershell.exe", "-Command", "Start-Process cmd.exe -Verb RunAs"], wait=False),
then vm_wait(for_="uac"). Without the helper (or when it errors with 5xx) it falls back to
QMP keys / screenshot and says so; for admin programs without any prompt use as_="admin".
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>"
},
"name": "vm_uac"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| action | No | inspect | |
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |