Read the console
console_readReads game console output from all realms, with optional regex filtering and cursor-based tailing to fetch only new lines. Use it to inspect prints, messages, warnings, and errors.
Instructions
Reads this game's console output: everything printed by the engine and by Lua in every realm (print, Msg, MsgN, MsgC, errors), one entry per line, kept in a ring buffer (20000 lines by default, see console_buffer) that survives map changes. Without cursor: the last limit lines (matching regex). With cursor: the lines from that point on; pass next_cursor to the next call to read only new lines. Result: {lines: [{seq, t (s since module start), level: message|warning|assert|error|log, text}], next_cursor, lost (lines dropped before you read them), oldest, capture (spew, logging, condebug or none: none = nothing is captured)}. To block until a line appears, use console_wait. Example: {"regex": "^\[ERROR\]", "limit": 50}.
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": "console_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Default 200. | |
| regex | No | Optional filter. | |
| cursor | No | Cursor (previous next_cursor). | |
| instance | No | Optional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lost | No | ||
| next | No | ||
| note | No | ||
| lines | Yes | ||
| oldest | No | ||
| capture | No | ||
| warning | No | ||
| next_call | No | ||
| answered_by | No | ||
| next_cursor | Yes | ||
| truncated_note | No | ||
| version_warning | No |