guest_command
Runs commands asynchronously inside a VM through Guest Tools and returns a job ID; use command_read to continue reading output when execution is not complete.
Instructions
通过 Guest Tools 执行命令,返回 job_id;未完成时用 command_read 继续读取。
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": {
"vm": "<vm>",
"command": "<command>"
},
"name": "guest_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| cwd | No | ||
| env | No | ||
| shell | No | auto | |
| command | Yes | ||
| wait_sec | No | ||
| timeout_sec | No |