Diagnose Run
lens.diagnose_runDiagnose trace run failures: identify faulty steps and agents, build incident timeline, detect anomalies, and generate investigation narrative for debugging.
Instructions
Diagnose a trace run: failure taxonomy, faulty step and agent with confidence and supporting spans, incident timeline, anomalies against optional baseline runs, and an investigation narrative. Needs agenticlens>=0.7.0.
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": {
"run": "<run>"
},
"name": "lens.diagnose_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | ||
| budget | No | ||
| config | No | ||
| baseline | No | ||
| session_id | No | Session to read/write shared state under. Defaults to 'default'. | |
| include_narrative | No |