Home / Docs / Tools / trace_cause
Tool

trace_cause

Answer "why did the agent do that?" by walking caused_by edges back to the root.

Signature
trace_cause(event_id, direction="backward", tenant_id?)
Example
trace_cause(event_id="refund_4471", direction="backward")

# => refund_4471 ← policy_under_5k ← dispute_4471 ← ...

Accepts an optional tenant_id to namespace memory. See the full tool reference.

Keep reading