Run a three.js page headless
three_checkOpen a three.js page in headless Chromium to report console, shader, WebGL, and blank-frame failures, compare approved screenshots, and inspect the scene before shipping changes.
Instructions
Open the page in headless Chromium (software WebGL 2) and report what a user would see go wrong: console and page errors (each with its likely cause and fix; shader errors point at your file and line), failed requests, no canvas or WebGL context, lost context, blank frames, the three revision, and a screenshot. baseline compares with an approved screenshot (created on first run) and reports the changed share with a diff image. steps interact first. When the frame is blank it also inspects the scene. Run it before you call a change done.
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_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Folder to serve when the page needs files above its own folder (for example ../node_modules). | |
| wait | No | Milliseconds to let the scene run (default 2000). | |
| entry | No | HTML file in the folder (default index.html) | |
| steps | No | Interactions before the screenshot: click (selector or x,y), press (key), drag, wheel, wait, wait-for. | |
| width | No | ||
| height | No | ||
| ignore | No | console messages containing this text are ignored | |
| target | Yes | Folder with the page (index.html), or the http(s) URL of a running dev server. | |
| webgpu | No | ||
| inspect | No | Also read the live scene graph and say why objects are not visible (done anyway when the frame is blank). | |
| baseline | No | Baseline name; created on first run. | |
| tolerance | No | ||
| screenshot | No | return the screenshot image (default true) | |
| update_baseline | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| url | Yes | ||
| errors | Yes | ||
| frames | Yes | ||
| baseline | No | ||
| contexts | Yes | ||
| findings | Yes | ||
| warnings | Yes | ||
| truncated | Yes | ||
| screenshot | No | ||
| threeRevision | Yes |