proxmox_exec
Executes shell commands inside Proxmox LXC containers or QEMU VMs, returning stdout, stderr, and exit code. Set confirm to true to run.
Instructions
Run a shell command inside an LXC container (via SSH+pct exec) or QEMU VM (via direct SSH by default, or the qemu-guest-agent API when PROXMOX_EXEC_BACKEND=guest-agent - no in-guest SSH key needed). Returns stdout/stderr/exit_code. Tier-2 write; requires confirm: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": {
"vmid": "<vmid>",
"command": "<command>",
"confirm": "<confirm>"
},
"name": "proxmox_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vmid | Yes | Container or VM id. | |
| command | Yes | Shell command to run inside the resource. | |
| confirm | Yes | Must be true to execute. Tier-2 safe-write gate. | |
| timeout | No | Timeout in seconds (default 30). |