Debug Error
debug_errorAnalyze runtime errors, exceptions, or stack traces to identify root causes and receive ranked, code-applicable fixes. Supports Python, JavaScript, TypeScript, Go, and Rust.
Instructions
Analyze a runtime error, exception, or stack trace and return root cause + ranked fixes. Use whenever the user pastes an error, asks "why is this failing", "what does this error mean", "debug this stack trace", "fix this exception", "analyze this traceback", or shows a Traceback / TypeError / ReferenceError / AttributeError. Works for Python, JavaScript, TypeScript, Go, Rust. Returns root cause explanation plus up to 3 ranked fixes with machine-applicable code edits. After applying a fix, report whether it worked via the report_outcome tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Absolute or relative path to the file that threw the error, if known. | |
| language | No | Source language. Use "auto" to let DebugAI detect from the error. | auto |
| errorText | Yes | The full error message, exception, or stack trace text. | |
| codeSnippet | No | Surrounding code lines near where the error was thrown, if available. |