vm_exec
Executes commands inside a UTM guest virtual machine and returns exit code, stdout, and stderr, with an optional timeout for programs that keep running.
Instructions
Runs a program in the guest and returns exit_code, stdout and stderr.
argv[0] is the executable (full path or on PATH), e.g. ["cmd.exe", "/c", "dir C:\"] or
["/bin/sh", "-c", "uname -a"]. Runs as the guest agent's user (SYSTEM on Windows, root on
Linux) without a desktop, so GUI programs started here are invisible. If it outlives
timeout seconds it keeps running and timed_out is true.
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_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| argv | Yes | ||
| timeout | No |