pve_agent_exec
Run a command inside a VM via the QEMU guest agent and return its exit code and output. Use argv-style commands to check or control services without opening a console.
Instructions
Run a command inside a VM through the QEMU guest agent and return exit code and output. command is argv, e.g. ["systemctl", "is-active", "nginx"]. Requires the agent to be installed and enabled.
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>"
},
"name": "pve_agent_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vmid | Yes | ||
| command | Yes | ||
| timeout | No | ||
| input_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||