3D engine that AI agents drive
JavaScript 3d3d-engineagentic-aiai-agentsblenderclaude-codegame-enginegaussian-splattinggltfjavascriptmcpmcp-servermodel-context-protocolpath-tracerpath-tracingpbrrenderingthreejs-alternativewebgl2webgpu
Errors and recovery
Every tool error names what failed and what to do next, so read the message before you retry. A failed
scene_apply, scene_restore or mesh_edit commits nothing: the old revision and recipe stay.
Messages you will meet
| Message or sign | Cause | Do |
|---|---|---|
expectedRevision rejected with the current revision and scene_inspect returns it |
Another call changed the scene, or you used an old number. | scene_inspect, take its revision, resend the same batch. |
camera.fStop rejected with a camera without effects.depthOfField.blur above 0; set blur to 0 or remove fStop |
Both depth of field controls are on. | Keep one: fStop on the camera, or effects.depthOfField.blur. See camera.md. |
camera.focalLength rejected with only one of fov (degrees) or focalLength (millimetres with sensorWidth), such as fov 45; remove the other |
Both lens fields in one command. | Send only one; focalLength replaces fov. |
bake.gridFog rejected with true only together with bake.irradianceGrid, such as irradianceGrid: true |
gridFog alone. |
Add irradianceGrid: true. See light.md. |
A shot error with reads motion up to ... but the motion lasts |
A timeline longer than a non-looping motion. | Lengthen the motion, set loop: true or a shot motionStart. |
| A light list error naming a cap | More than 16 point, 8 spot or 7 area lights. | Merge or remove lights; each list replaces the old one. |
environment.hdri must be one of ... or the 64-character ID ... |
A made-up name, path or URL. | scene_asset_catalog, copy a listed name or ID. |
No scene is active |
Nothing created yet, or disposed. | scene_create. |
Result has renderSucceeded: false and renderError |
The edit committed, the draw failed (bad pass, lost context). | scene_export_recipe to keep it, fix the cause named in renderError, then scene_look. |
| An unknown field is rejected before dispatch | A typo or a field of another recipe section. | Fix the name; scene_capabilities with the section as topic lists valid fields. |
Diagnostics in scene_inspect
diagnostics appears only when something needs a decision. The ones that change the picture:
closed-room-without-bake: add a bake (light.md).coplanar-overlap: flush faces are ranked automatically; this is what is left. Follow itsfix(light.md).motionIkwarnings(wrong-bend,hyperextended) andlimited: fixbendTowardandlimits.rigproblems: unweighted vertices, bones with no vertices.- Mesh lint (
mesh_inspect):intersecting-parts,thin-wall,floating-part; each comes with a fix.
Recover
scene_checkpointbefore an experiment, so there is a known good state.- After a bad result,
scene_restorewith thecheckpointIdand the currentexpectedRevision. Restoring increments the revision and keeps the checkpoint. - For variants use a
branchonscene_applyinstead of editing: the scene stays as it is until you choose one. - A frame that looks wrong is not an error. Compare with
scene_review(several shots,labels: true) before changing the look again, and change one field at a time. - When the recipe is the product,
scene_export_recipeafter every accepted step. - Release saved states you no longer need (
scene_release_checkpoint) andscene_disposebefore a new scene.
When it is the tool
If an error looks like an engine bug (a failed call that the message cannot explain, a crash, a wrong picture from a
valid recipe), stop retrying. File an issue at codepawl/crucible with the tool call, the recipe from
scene_export_recipe and a scene_look still. Do not include local paths.