Read Lua errors
errors_sinceRetrieve Lua errors from every realm since a cursor, filter to the current map load, or group repeated messages to find stuck loops.
Instructions
Lua errors of every realm of this game, as the game reports them (client mode: the menu's OnLuaError hook; srcds: parsed from the console). The game reports each distinct error as it happens. Cursor: 0 = from the oldest kept error; pass next_cursor to read only new ones. The last 2000 are kept and survive map loads: each error carries map_load (a number that grows with every map load) and map; since_map_load: true keeps only the current map's errors, including those raised while it loaded. Result: {errors: [{seq, realm, message, stack: [{file, line, function}], addon, addon_id, time, map_load, map}], next_cursor, lost, map_load, map}. A stuck loop can fill the 2000 kept with one message: group_by: "message" returns {groups: [{message, count, first_seq, first_time, last_seq, last_time, realms, map, stack, addon}], groups_total, next_cursor, lost, map_load, map} instead, most frequent first. Example: {"cursor": 0, "since_map_load": true}.
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": "errors_since"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max errors returned (default 100). | |
| realm | No | Optional realm filter. | |
| cursor | No | Start here (default 0 = the oldest kept error). | |
| group_by | No | "message": one entry per distinct message instead of the list of errors: {groups: [{message, count, first_seq, first_time, last_seq, last_time, realms, map, stack, addon}]} most frequent first (limit caps the groups, groups_total counts them), next_cursor covers every error read. | |
| 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. | |
| since_map_load | No | Only errors of the current map load (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map | No | ||
| lost | No | ||
| next | No | ||
| note | No | ||
| errors | No | ||
| groups | No | ||
| warning | No | ||
| map_load | No | ||
| next_call | No | ||
| answered_by | No | ||
| next_cursor | Yes | ||
| groups_total | No | ||
| truncated_note | No | ||
| version_warning | No |