Inspect the live three.js scene
three_inspectInspect a running three.js page headless to read scene graph, camera, renderer stats, and GPU memory, then diagnose why objects are invisible or the canvas is black/empty.
Instructions
Open the page headless and read the running scene through three's devtools hook: the scene graph (types, names, positions, geometry, materials, lights), the camera, renderer stats (draw calls, triangles, geometries, textures) and whether GPU memory keeps growing. Diagnoses why objects are not visible: no lights, camera inside or pointed away, behind the camera, beyond far, zero scale, NaN positions, invisible materials, wrong layers, stretched aspect, shadows switched off. Use it when a scene is black, empty or wrong, before guessing.
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": {
"target": "<target>"
},
"name": "three_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | ||
| wait | No | ||
| entry | No | ||
| steps | No | Interactions before the screenshot: click (selector or x,y), press (key), drag, wheel, wait, wait-for. | |
| target | Yes | Folder with the page (index.html), or the http(s) URL of a running dev server. | |
| leak_ms | No | Sample GPU memory this many ms apart (default 1500, 0 = off). | |
| max_nodes | No |