Execute command in guest (QEMU agent)
vm_agent_execRun shell commands inside a VM via QEMU guest agent. Get a process ID to poll execution status and output.
Instructions
Run a shell command inside a VM via the QEMU guest agent. Returns a pid; poll exec_status for output.
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 | Shell command to run inside the guest | |
| input_data | No | Optional stdin |