Read a report channel
reports_readReads values published by game code to named channels, returning JSON items with cursors so you can fetch new updates incrementally or wait for the next value.
Instructions
Reads the values that game code published with mcpagent.report(channel, value) (a Lua function gmod-mcp adds in every realm; job:report(value) of a lua_job publishes on "job:"). Values come back whole, as JSON. Read incrementally: cursor 0 = the oldest kept value, then pass next_cursor. wait_s > 0 waits until a new value arrives (or wait_s passes). Each channel keeps its last 10000 values (lost > 0 = dropped before you read them); channels survive map changes and live until reports_clear or the game exits. Result: {channel, items: [{seq, time, realm, value}], next_cursor, lost, timed_out}. Example: in the game mcpagent.report("scan", {map = game.GetMap(), hits = n}), then {"channel": "scan", "cursor": 0, "wait_s": 30}.
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": {
"channel": "<channel>"
},
"name": "reports_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Default 500. | |
| cursor | No | Cursor (default 0 = from the start of the buffer). | |
| wait_s | No | Max wait if nothing new (default 0). | |
| channel | Yes | Channel name. | |
| 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 | ||
| items | Yes | ||
| channel | No | ||
| warning | No | ||
| next_call | No | ||
| timed_out | No | ||
| answered_by | No | ||
| next_cursor | Yes | ||
| truncated_note | No | ||
| version_warning | No |