gograph_errorflow
Trace how errors propagate from a specified origin function through the call chain. Use to audit error-handling completeness and locate unhandled errors.
Instructions
Trace the flow and propagation of returned errors from a specific origin function. BEHAVIOR & SAFETY: This is a 100% local, read-only static analysis tool. It has no side effects, requires no authorization or credentials, has no rate limits, and performs zero destructive modifications. USAGE GUIDELINES: Call this tool when auditing error-handling completeness, locating unhandled errors, or tracing failure modes. Do NOT use for standard call graphs (use gograph_callers/callees instead). COMPLETENESS: Requires 'function' parameter. Returns error bubbling paths up the call chain. Example function: 'BuildGraph'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| no_tests | No | If true, exclude test files from related-test collection (matches CLI --no-tests) | |
| query | No | The error string or sentinel error name (preferred over term) | |
| term | No | The error string or sentinel error name (e.g., 'ErrInvalidToken' or 'invalid token') |