Explain a diagnostic code
explainLook up an ArchLang E_/W_ diagnostic code to see its meaning, cause, and fix, plus an example that raises it and a corrected version, so you can resolve the compiler error.
Instructions
Look up an E_/W_ diagnostic code in the catalogue: what it means, why it is raised and how to resolve it, with an example that raises it and, for most codes when the installed core has them, fixed, the same example corrected. Returns { ok:true, code, entry: { code, severity, message, cause, fix, example, fixed? } }, the explain --json of the CLI; an unknown code returns { ok:false, code }. The code is matched case-insensitively.
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": {
"code": "<code>"
},
"name": "explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A diagnostic code, e.g. E_ROOM_SIZE or W_DOOR_CLEARANCE. |