Explain an error
project_explain_errorDiagnose command, build, test, or provider failures from error text or log tails and return likely causes with ready-to-send next actions.
Instructions
Diagnose a failure from its error text / log tail: known signatures (errno, TypeScript, Python, git, npm, GitHub, venira codes) → likely cause + ready-to-send next tool calls. Rule-based, offline, instant. Use when: a command, test, build or provider call failed and you want the fastest route to the fix (feed it the stderr tail or the CI log tail). Avoid when: you already know the cause and only need the file contents (use project_read_file / project_read_ranges). Speed: pure local rules, < 1 ms; no network and no model call. Output: explain_error: matched, summary, error_line, language, diagnoses[] {rule_id, title, likely_cause, suggested_fix[], retry_hint?, next_actions[]}, next_actions[]. Batch-safe: yes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Optional language hint (typescript|python|rust|go|...) when the text does not show a file extension. | |
| log_tail | No | Tail of the failing output (e.g. project_ci_logs / project_shell_status text). | |
| error_text | No | The error block (stderr, exception, compiler output). One of error_text/log_tail is required. |