Read run events
agent_run_eventsRead a run's event log after a cursor and optionally poll at about 1 Hz until the run completes, so you can monitor progress and know when it finishes.
Instructions
Read a run's event log from a cursor (GET /runs/<run_id>/events?after=). With wait_for_done, polls at ~1 Hz (the web client's cadence) until the run finishes.
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": {
"scan_id": "<scan_id>",
"run_id": "<run_id>"
},
"name": "agent_run_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| poll_s | No | ||
| run_id | Yes | ||
| scan_id | Yes | ||
| timeout_s | No | ||
| wait_for_done | No |