vm_agent_exec
Execute commands inside a Proxmox VM through the QEMU Guest Agent, passing input to stdin for scripted or remote tasks without direct console access.
Instructions
Execute a command inside a VM via the QEMU Guest Agent.
Args: node: The node name. vmid: The VM ID. command: The command to execute. A string is split into arguments using POSIX shell rules (quote paths containing spaces). A list is passed through unchanged and is recommended for Windows guest paths with backslashes, since POSIX splitting otherwise strips them. input_data: Data to pass to stdin.
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>",
"command": "<command>"
},
"name": "vm_agent_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | ||
| vmid | Yes | ||
| command | Yes | ||
| input_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |