Look at and drive the live page
three_pageInspect and interact with an active three.js page without reloading: evaluate JavaScript, simulate clicks/drags, wait for frames, capture screenshots, and read console or scene errors.
Instructions
Work with the page three_session started, without reloading it. op eval runs JS in the page and returns the value as compact JSON (vectors as [x,y,z], colours as hex, objects as type/name/position), with scene, camera, renderer (the last ones rendered), $('name') (getObjectByName), $$('Type') and THREE (when global) in scope; a single expression is returned, statements need return. op steps runs interactions (click, press, drag, wheel, wait, wait-for); op frames waits n animation frames; op until waits until a JS expression is true; op screenshot returns the picture; op inspect reads the scene graph and why objects are not visible; op reload loads edited files (state starts over); op errors lists the errors so far. Every answer ends with the new console and page errors.
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": {
"op": "<op>"
},
"name": "three_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | frames to wait | |
| js | No | for eval and until, e.g. $('player').position or scene.children.length | |
| op | Yes | ||
| name | No | ||
| steps | No | Interactions before the screenshot: click (selector or x,y), press (key), drag, wheel, wait, wait-for. | |
| timeout | No | ms for until (default 5000) | |
| max_nodes | No |