Read console output
read_consoleRetrieve the most recent console output from a running Minecraft server, including lines printed while listening, to monitor activity and diagnose issues in real time.
Instructions
Returns the most recent console lines of a running server (the node keeps about the last 150), plus anything printed while listening. For older output or an offline server, read_file logs/latest.log with tail_lines.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_console"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Maximum number of lines to return, newest last. | |
| server | No | Server identifier or UUID. Omit to use the configured server (PEBBLEHOST_SERVER_ID); other servers are refused unless PEBBLEHOST_ALLOW_ALL_SERVERS is set. | |
| wait_seconds | No | Seconds to listen for history and new output before returning. |