Explain a three.js error
three_explainExplains three.js console, build, test, or bug-report errors, giving likely cause and fix for import paths, missing exports, decoders, NaN geometry, shaders, CORS, and WebGPU init.
Instructions
Likely cause and fix of a three.js error or warning from the console, a build, a test run or a bug report: missing exports and wrong import paths (with the right path for the installed version), classes that no longer exist, two copies of three, objects used before a model loaded, 404 HTML instead of a model, Draco/KTX2 decoders, NaN geometry, lost contexts, shader compile errors, CORS, file://, WebGPU init. Paste the message as it was printed. Read-only.
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": {
"message": "<message>"
},
"name": "three_explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Project folder, or a file or folder in it (relative to the server's folder; default: the project). | |
| three | No | Path to a three package folder, when it is not in node_modules above the project. | |
| message | Yes |