Give Agent the failure
Include the error, failing command, URL, or deployment state.Ask for cause before edits
For unclear failures, ask Agent to explain the cause before changing files.Inspect an agent run
Start with the run’s recorded status and error. Then read its events withlist_run_events, one page at a time.
- Failure: Filter by
is_errorto find the failing event. Then query again with only itsspan_idto see the call arguments next to the result. - Overview: Filter
event_classtofactto skip streaming deltas. - More events: Pass
page_info.nextascursorand keep the same filters.