qemu_serial
Read the tail of a VM's serial console output, including after the guest crashes or exits, to inspect final boot or error messages without SSH.
Instructions
Read the tail of the VM's serial console output (COM1).
Works even after the VM has exited (guest crash, or quit via
qemu_qmp) so you can see what it printed right before dying - the
exited VM stays visible here until qemu_list's next call reaps it.
tail_lines must be positive.
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": {
"name": "<name>"
},
"name": "qemu_serial"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| tail_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |