Explain an install/runtime error
explain_errorExplains Node.js and Deno install/build errors in project context, returns likely meaning and related findings, and outlines a minimal fix plan before deleting node_modules or lockfiles.
Instructions
Explain an error message (Cannot find module, NODE_MODULE_VERSION, ERESOLVE, EBADENGINE, ERR_REQUIRE_ESM, missing rollup/esbuild/sharp binaries, command not found, lockfile out of sync, ...) in the context of this project, combined with a diagnose. Returns what it means, related findings, and the smallest fix plan with a plan_id. Read-only. Call this before deleting node_modules or lockfiles.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"error": "<error>"
},
"name": "explain_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Project root containing package.json. Defaults to the server's working directory. | |
| error | Yes | The error output, as printed (stack traces welcome). | |
| native | No | Also load native addons (slower). |