vm_run_user
Run programs in a UTM VM guest desktop session to open GUI apps, with options to wait for output or return only the process ID.
Instructions
Runs a program in the guest's desktop session (unlike vm_exec, which has no desktop). Use
it to open GUI apps: argv ["notepad.exe"], wait=False. With wait=True returns pid, exit_code,
stdout, stderr, timed_out (a program that outlives timeout seconds keeps running); with
wait=False only the pid. show=False hides the console window. argv[0] is the executable, no
shell: use ["cmd.exe", "/c", "..."] for shell syntax.
as_ picks the identity: "user" (default) the logged-in user, normal rights; "admin" the same
user elevated (no UAC prompt appears; fails with 403 if they are not an administrator);
"system" NT AUTHORITY\SYSTEM. Admin apps can be driven by vm_window / vm_ui_act too.
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>",
"argv": "<argv>"
},
"name": "vm_run_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| as_ | No | user | |
| argv | Yes | ||
| show | No | ||
| wait | No | ||
| timeout | No |