three_live_convert
Compile Three.js scripts, HTML documents, or .glb files into binary glTF (.glb) or 64-byte-aligned USDZ assets for Android, iOS/visionOS, and Web.
Instructions
Compile a Three.js script, HTML document, or .glb into a binary glTF 2.0 (.glb) or Apple 64-byte-aligned Universal Scene Description (.usdz) asset for Android (Filament / Jetpack XR SceneCore), iOS/visionOS (RealityKit / Quick Look), and Web.
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_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Inline Three.js scene script or HTML document. Provide either `code` or `inputPath`. | |
| format | No | Target container format (`glb` or `usdz`). Inferred from `outputPath` extension when omitted (defaults to `glb`). | |
| inputPath | No | Path to an input .js, .html, or .glb file on disk. | |
| outputPath | No | Optional destination path to write the compiled .glb or .usdz binary on disk. | |
| 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. | |
| texturePackPath | No | Optional path to a texture pack JSON file (e.g. written by `three_live_bake_textures`). |