vm_tail
Reads the last lines of a guest VM text file such as a job log or syslog through the guest agent, without needing helper tools. Use it to inspect recent log output.
Instructions
The last lines lines of a guest text file (a job log, a service log, /var/log/syslog), at
most 256 KB. Windows reads it as UTF-8. Runs through the guest agent, no helper needed.
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>",
"path": "<path>"
},
"name": "vm_tail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| path | Yes | ||
| lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |