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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sage_explain_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command_id | No | Optional SAGE run id to analyze. Omit to analyze the most recent failed command. |