Read run event details: errors, steps, model calls and tool results, paginated by canonical UUID; MODEL_CALL_COMPLETED reports per-call usage.
Arguments
commandRunsListRunEventsCommand!requiredcommand.runIdID!requiredRun UUID, or the public run id (run_…) that run lists and getRun carry as run_id. Event reads resolve it as getRun does.
command.cursorJSONThe previous page’s continuation cursor. Released row reads use a positive event_id. With event_representation=run-events-v1, this is the opaque
page_info.next_cursortoken from the previous target page.command.limitFloatMaximum number of records in a page, from 1 to 100. Defaults to 20.
command.sortOrderStringEvent order by durable event id.
ascreturns older events first;descreturns newer events first. Defaults toasc.command.afterEventIdFloatDeprecated. Use
cursor. Accepted as an ascending cursor; 0 means no cursor.command.eventClassStringEvent class to include:
factfor state changes ordeltafor streaming fragments. If omitted, returns both.command.eventType[String!]command.isErrorBooleanIf true, returns only events with
is_error: true. If false, returns other events. If omitted, returns both.command.startStringOnly events created at or after this instant (ISO 8601 with a UTC offset, inclusive). A summary bucket start can be sent as is.
command.endStringOnly events created before this instant (ISO 8601 with a UTC offset, exclusive). Must be later than start. A summary bucket end can be sent as is.
command.spanIdIDOnly events whose envelope span_id, as served to the caller, is exactly this value (tool:<id>, message:<id>, step:<id>, input_request:<id>, run:<id>, with a non-empty <id>).
command.turnIdIDOnly events whose envelope turn_id, as served to the caller, is exactly this value (message:<id>, with a non-empty <id>).
command.searchStringCase-insensitive substring of the event payload JSON as served to the caller (1-200 characters after trimming, matched literally).
command.includeDescendantsBooleanIf true, includes events from readable descendant runs, up to 16 generations. Results share one
event_idorder and cursor. Each event retains itsrun_idand the payload visibility permitted for that run. Runs the caller cannot read are excluded. Defaults to false. If at least one descendant is included, task or workflow runs without stored events do not contribute synthetic lifecycle events. Event IDs are allocated before commit. During active writes, ascending pagination can pass an ID that another run commits later.
Responses
query ListRunEvents($command: RunsListRunEventsCommand!) { listRunEvents(command: $command) { data { eventId eventType payload isError createdAt runId eventClass spanId parentSpanId turnId originEventType originCustomName unrecoverableFields } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } }}{ "data": { "listRunEvents": { "data": [ { "eventId": 0, "eventType": "string", "payload": {}, "isError": false, "createdAt": "string", "runId": "string", "eventClass": "string", "spanId": "string", "parentSpanId": "string", "turnId": "string", "originEventType": "string", "originCustomName": "string", "unrecoverableFields": [ "string" ] } ], "pageInfo": { "hasNextPage": false, "hasPreviousPage": false, "startCursor": "string", "endCursor": "string" } } }}The RunsEventConnection! in data.listRunEvents.