Guest Agent Command Execution
proxmox_agent_execExecute commands inside Proxmox QEMU VMs via the guest agent, returning a PID; then poll status by PID to retrieve completion and output.
Instructions
Execute commands via QEMU agent. operation=exec: executable command + args, returns PID (no timeout or implicit shell) | operation=status: retrieve completion and output by PID (requires elevated permissions)
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": {
"node": "<node>",
"vmid": "<vmid>",
"operation": "<operation>"
},
"name": "proxmox_agent_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | Process ID returned by agent exec | |
| args | No | Command arguments | |
| node | Yes | Node name where VM is located | |
| vmid | Yes | VM ID number | |
| command | No | Executable name or path; pass arguments separately (no implicit shell) | |
| timeout | No | Unsupported: omit. Exec is asynchronous; poll operation=status instead. | |
| operation | Yes | ||
| input-data | No | Input data for stdin | |
| capture-output | No | Deprecated: omit or use true; false is unsupported. Read output with operation=status. |