Skip to main content
Glama

three_live_convert

Idempotent

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

NameRequiredDescriptionDefault
codeNoInline Three.js scene script or HTML document. Provide either `code` or `inputPath`.
formatNoTarget container format (`glb` or `usdz`). Inferred from `outputPath` extension when omitted (defaults to `glb`).
inputPathNoPath to an input .js, .html, or .glb file on disk.
outputPathNoOptional destination path to write the compiled .glb or .usdz binary on disk.
texturePackNoOptional 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.
texturePackPathNoOptional path to a texture pack JSON file (e.g. written by `three_live_bake_textures`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.1
    • addedInput schema / properties / texturePack
      Added value: +{
      +  "description": "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.",
      +  "type": "object"
      +}
    • addedInput schema / properties / texturePackPath
      Added value: +{
      +  "description": "Optional path to a texture pack JSON file (e.g. written by `three_live_bake_textures`).",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, idempotentHint=true, and openWorldHint=false, so the write/idempotent profile is covered. The description adds the platform targets and output formats but says nothing about failure modes, whether compilation is local or remote, or what happens when both code and inputPath are omitted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the verb and inputs first, then outputs, then platforms. The trailing platform enumeration (Filament/Jetpack XR SceneCore, RealityKit/Quick Look, Web) is dense but informative rather than redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six parameters, a nested texturePack object, and no output schema, the description should say what the call returns (binary buffer vs. written file path) and how outputPath affects the result. It covers inputs and targets well but leaves the return contract and the code-vs-inputPath precedence unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all six parameters including the code/inputPath alternative and the format inference rule. The description only restates the accepted input types, adding no syntax, size limits, or texturePack interaction detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (compile) plus the exact input resources (Three.js script, HTML document, .glb) and the two output containers (.glb, .usdz) with target platforms. This is clearly distinguishable from siblings such as three_live_render, three_live_validate, and three_live_bake_textures without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the purpose: use this when you need a compiled glb/usdz asset for a runtime. However, there is no explicit when-to-use versus when-not guidance, no mention of prerequisites, and no routing to alternatives like three_live_validate for checking a scene before compiling.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.