Read Debug Events
debug_eventsWait for ordered MI records and lifecycle events after a debug cursor, renew the client heartbeat, and return an error for stale cursors.
Instructions
Wait for ordered MI records and lifecycle events after a debug cursor; renews the client heartbeat. A stale cursor is an error, never silently skipped. Invalid UTF-8 MI values use explicit base64 objects.
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": {
"owner": "<owner>",
"debug_id": "<debug_id>",
"cursor": "<cursor>"
},
"name": "debug_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Secret random capability, 32..128 characters; retain for retries and all calls. Never publish it in events. | |
| cursor | Yes | Next event cursor; begin at zero to include startup events. | |
| debug_id | Yes | Opaque debug_id returned by debug_start. | |
| timeout_ms | No | Wait duration 1..30000 ms; default 10000. Timeout is an error and does not end debugging. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | ||
| events | Yes | ||
| status | Yes |