Request an invite
Docs menu

vm_logs

Read a virtual machine's logs.

Returns the end of a machine's log: console (what the guest wrote to its serial console), worker (what OSMates logged while running it), events, or egress (what its filter decided while its network access was limited, also by the identifier of a machine since deleted, as vm_run's), at most 32 KiB.

Profiles
read-only, operator, full
Read-only
Yes
Destructive
No
Idempotent
Yes
Open world
No
Runs as a task
No

Parameters

max_bytesinteger

Default 16384.

From 1 to 32768.

sourcestring

Default console.

One of console, worker, events, egress.

vmstringRequired

The machine's name or identifier, as vm_list shows it.

Output

The result's structured content is an object with these fields.

JSON Schema: /schemas/0/mcp/tools/vm_logs/output.json

sourcestringRequired

One of console, worker, events, egress.

textobjectRequired
text.bytesintegerRequired

At least 0.

text.encodingstring

One of base64.

text.guestDatastringRequired
text.shownintegerRequired

At least 0.

Report a problem with this page