Stack-Trace Root-Cause Frame Isolator & Drain Log Deduplicator
isolate_stacktrace_root_causeParses noisy CI/terminal logs and multi-language stack traces (Node/TS, Python, Rust, Go), strips node_modules/stdlib frames to isolate the innermost failing user-code frame, and clusters repetitive logs into Drain templates. Use when triage-debugging test failures, crash dumps, or repetitive server error logs; for compressing general source code files or prose transcripts, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'raw_log' ('runtime_hint' defaults to 'auto_detect'), supports '?demo=true' or L402 (50 sats), and returns HTTP 400 if invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_log | Yes | Raw terminal output, CI failure log, or exception traceback to analyze. | |
| runtime_hint | No | Runtime stack format hint; defaults to 'auto_detect' when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error_headline | Yes | Extracted primary exception class and error message. | |
| root_cause_frame | Yes | Innermost user-code stack frame (function_name, file, line, column). | |
| root_cause_fingerprint | Yes | Deterministic hash of the error class and root user frame. | |
| deduplicated_log_templates | Yes | Drain-clustered log patterns with occurrence counts. | |
| stripped_library_frames_count | Yes | Number of node_modules, stdlib, or internal frames filtered out. |