sage_explain_error
Analyze a failed SAGE command to identify error type, root cause, and affected files. Obtain actionable suggestions without running any new commands.
Instructions
Explain why a previous SAGE command failed. Use after a non-zero command exit before editing code or retrying. Input is an optional SAGE run id; when omitted, the most recent failed run is analyzed. Returns a structured object with error_type, summary, root_cause, affected_files, and suggestions. Read-only: does not run commands, edit files, or contact external services.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command_id | No | Optional SAGE run id to analyze. Omit to analyze the most recent failed command. |