What is in a model, and how three.js loads it
three_model_inspectInspect .glb or .gltf files without a browser to get nodes, meshes, materials, textures, animations, draw-call estimates, and the three.js loaders and setup code required.
Instructions
What is in a .glb or .gltf without loading it in a browser: nodes, meshes, triangles, materials, textures with sizes, animations, skins, size in metres, glTF extensions, a draw-call estimate, and which loaders and decoders three.js needs for it (DRACOLoader, MeshoptDecoder, KTX2Loader) with the code to set them up. It also checks the project's code sets those decoders up. Read-only.
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": {
"file": "<file>"
},
"name": "three_model_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | .glb or .gltf file (relative to the project) | |
| path | No | Project folder, or a file or folder in it (relative to the server's folder; default: the project). | |
| detail | No | brief (capped, short) or full (everything); default brief |