glTF Transform
$ gltf-transform Community Low Riskgltf-transform (@gltf-transform/cli) inspects mesh/texture memory budgets (inspect), validates glTF 2.0 specification compliance (validate), and applies all-in-one asset optimization (optimize) including Draco/Meshopt geometry compression and WebP/KTX2 texture encoding.
npm install -g @gltf-transform/cli Binary 3D mesh/texture inspection (inspect) and Draco/WebP optimization execute locally in Node.js without MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean Caporal-based CLI with non-interactive subcommands (inspect, validate, optimize), --silent, and --no-color, though inspect prints ASCII tables rather than JSON.
- Read-only
inspectandvalidatesubcommands - No
--jsonoutput oninspecttables
Requires explicit INPUT and OUTPUT paths on all write commands, preserving source .glb/.gltf files safely.
- Write commands take separate
<input> <output>arguments
Cross-platform via npm or npx @gltf-transform/cli (Node.js required; KTX2 compression needs ktx CLI installed separately).
- Available via
npm install -g @gltf-transform/cliandnpx
Comprehensive 3D asset toolkit covering optimize, draco, meshopt, resize, webp, ktx2, simplify, and validate.
- Single CLI handles inspection, validation, mesh simplification, and texture compression
Industry-standard MIT repository (donmccurdy/glTF-Transform) maintained actively alongside the Khronos glTF ecosystem.
- Active
donmccurdy/glTF-Transformrepository under MIT
Clear gltf-transform.dev/cli docs and per-subcommand --help examples.
- Official CLI reference at gltf-transform.dev/cli
Security, Auth & Guardrails
None required; operates on local .gltf and .glb 3D asset files.
Free MIT open-source Node.js CLI.
# glTF Transform Agent Rules - Run `gltf-transform inspect` and `gltf-transform validate` before and after optimization to verify vertex/texture budgets. - Always output to a distinct `out.glb` path rather than overwriting `in.glb`.
Agent-Ready Command Recipes
Safe Read-Only Queries
gltf-transform inspect model.glb
Outputs structured tables of scenes, meshes, vertex counts, and GPU/file texture sizes without writing files.
gltf-transform validate model.glb
Runs the Khronos glTF Validator against model.glb and reports schema errors or warnings.
Controlled Writes & Previews
gltf-transform optimize in.glb out.glb --compress draco --texture-compress webp
Deduplicates accessors, prunes unused nodes, and writes compressed out.glb without altering in.glb.
Strengths for Agents
- +
inspect+validate+optimizecovers the full 3D glTF/GLB QA and compression lifecycle. - + Always writes to a separate output path, keeping source 3D assets safe.
Caveats & Pitfalls
- !
inspectoutputs formatted terminal tables rather than--json. - ! KTX2/BasisU texture compression (
--texture-compress ktx2) requirestoktxfrom KTX-Software installed separately.