What is wrong, and in which order to fix it
three_doctorDiagnose a three.js project from files alone when the scene is blank or broken: check versions, imports, assets, removed APIs and performance, ranked by cause with fixes and next steps.
Instructions
Start here in a three.js project you do not know, or when something is broken and you do not know where to begin. From the files alone (no browser): versions and imports, why the scene shows nothing, assets that will not load, removed APIs for the installed release, colour, performance and cleanup — grouped by cause, most urgent first, each with its fix and whether three_fix does it, then numbered next steps. For the page itself use three_check afterwards. Read-only.
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": "three_doctor"
}
}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. | |
| detail | No | brief (capped, short) or full (everything); default brief |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| next | Yes | ||
| score | Yes | ||
| three | Yes | ||
| errors | Yes | ||
| findings | Yes | ||
| warnings | Yes | ||
| truncated | Yes |