three_live_validate
Validates Three.js scripts, HTML documents, and GLB files, running spatial, camera frustum, grounding, AABB collision, lighting, and 3D/XR accessibility lint checks.
Instructions
Validate a Three.js script (.js), HTML document (/), or .glb binary and run the 3D spatial, camera frustum, grounding, AABB collision, lighting, and 3D/XR accessibility linter (TL100-TL606).
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_live_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Inline Three.js scene script (using pre-defined `THREE` and `scene` globals) or HTML document. Provide either `code` or `inputPath`. | |
| cameraFov | No | Optional vertical field of view in degrees (default 45). | |
| inputPath | No | Path to a .js, .html, or .glb file on disk when `code` is not provided. | |
| texturePack | No | Optional AI texture pack (`{format: "three-live-texture-pack", version: 1, entries}`) so `userData.xr.material.prompt` textures resolve; without it the preset fallback is used. | |
| cameraTarget | No | Optional camera look-at target override [x, y, z] in meters. | |
| cameraPosition | No | Optional camera eye position override [x, y, z] in meters for frustum and visibility checks. | |
| texturePackPath | No | Optional path to a texture pack JSON file (e.g. written by `three_live_bake_textures`). |