Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Three-Live 3D, CAD & Spatial XR compiler, headless 4-up contact sheet renderer, spatial linter (TL100-TL402), and 60 Hz simulation engine. Use three_live_validate and three_live_render to verify Three.js scenes visually and spatially (pass reference to three_live_render to compare against a photo, sketch, or blueprint), three_live_convert to export .glb or Apple .usdz, three_live_sim to step KHR_interactivity and 60 Hz physics, three_live_gym_reset / three_live_gym_step to play a scene closed-loop (act, observe positions, events, and rewards, then react), and three_live_link to give the user a playground link (or QR code) that opens the scene on any phone or desktop browser.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
three_live_validateA

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).

three_live_renderA

Render a Three.js script, HTML document, or .glb headlessly (zero GPU required) into a 4-up orthographic/camera contact sheet PNG (CAMERA, FRONT +Z, TOP +Y FRUSTUM, ISO 45 deg), single viewport PNG, or temporal filmstrip / 360-degree turntable GIF. Returns the base64 image directly to vision-capable agents along with spatial diagnostics. Pass reference (a photo, product shot, mockup, sketch, or blueprint as a PNG/JPEG path or data URI) to get a REFERENCE | RENDER | OVERLAY | SILHOUETTE DIFF comparison sheet rendered at the reference's aspect ratio, plus silhouette IoU, aspect-ratio error, and guidance for matching its proportions.

three_live_convertA

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.

three_live_simB

Simulate interactive KHR_interactivity behavior graphs, orbit/explode traits, and 60 Hz xr-live-sim rigid-body physics, mechanical joints (hinge, slider, spring, ball), character controllers, steering agents, hit zones, and objectives deterministically at 60 Hz.

three_live_linkA

Validate a Three.js scene script and return a web playground link that opens it on any desktop or phone browser (with View in AR on iPhone and Android). The scene rides in the URL fragment (raw DEFLATE + base64url), so nothing is uploaded. Optionally returns the link as a QR code (terminal text and SVG) for the user to scan with a phone. Fails, listing the errors, when the scene does not compile.

three_live_gym_resetA

Start a closed-loop agent gym episode: compile a scene with userData.xr traits (character controllers, objectives, hit zones, agents, joints, physics) and return a sessionId plus the t = 0 observation (body positions, health, score, scenario state). Then call three_live_gym_step repeatedly to act, observe, and react, like a reinforcement-learning environment. The simulation is deterministic at 60 Hz.

three_live_gym_stepA

Advance a gym episode: apply actions now (or at seconds into the step), simulate ticks 60 Hz ticks, and return the new observation with reward (score gained this step), events, audioCues, and newObjectives fired during the step, and done when the scenario reaches victory or defeat or the episode hits its 120 s / 240-step limit. moveCharacter actions last the whole step unless duration is given.

three_live_gym_closeA

End a gym episode and free its session (sessions are also evicted, oldest first, beyond 16).

three_live_from_imageA

Reconstruct a Three.js scene script from a reference image (local PNG/JPEG/WebP file path, data:image/...;base64 URI, or https:// URL) using a multimodal Chat Completions endpoint, with automatic sandbox + spatial linter (TL100-TL502) repair, optional closed-loop 50/50 overlay + 4-up visual refinement (visualTurns: 0..5), and optional metric spatial priors (AISpatialPriors). Also returns a rendered REFERENCE | RENDER | OVERLAY | SILHOUETTE DIFF comparison sheet (or 4-up contact sheet) when includeContactSheet is true.

three_live_bake_texturesA

Generate the AI textures a scene asks for (mesh.userData.xr = { material: { preset, prompt, size: 256 | 512 | 1024, seed } }) through an OpenAI-compatible Images endpoint and save them in a texture pack. Use it last, after geometry and presets look right: it needs a configured image endpoint and costs money per texture. Returns a preset-vs-AI comparison image and the bake report. Pass the pack to three_live_render / three_live_convert (texturePack / texturePackPath) and ship it with the scene (<three-live texture-pack=...>).

Prompts

Interactive templates invoked by user choice

NameDescription
author_three_live_sceneAuthor and visually verify a cross-platform Three.js 3D, CAD, or Spatial XR scene for Android (Filament/SceneCore), iOS/visionOS (RealityKit), and Web.
build_from_referenceBuild an editable, named Three.js scene that matches a reference photo, product shot, mockup, sketch, or blueprint, verifying proportions with three_live_render's reference comparison.

Resources

Contextual data attached and managed by the client

NameDescription
Three-Live & XR-Live Authoring GuideConcise Three.js primitives allowlist, userData.xr spatial traits, CAD/CSG helpers, and visual verification workflow.

TDQS

A3.9/5.0

Scored across 10 tools

Disambiguation4/5

Each tool targets a distinct stage of the 3D/XR asset pipeline: convert, validate, render, simulate, bake, link, reconstruct, and a gym lifecycle trio. The only mild overlap is three_live_link and three_live_validate, both of which validate scenes, but their outputs (playground URL/QR vs. lint report) are clearly different.

Naming Consistency5/5

All ten tools use the three_live_ snake_case prefix followed by a verb or verb_noun phrase (convert, render, validate, bake_textures, from_image, gym_reset/step/close). The gym lifecycle group is internally consistent and predictable.

Tool Count5/5

Ten tools is well within the sweet spot for a scene-authoring/asset-conversion server, and each tool covers a distinct capability (validation, rendering, conversion, simulation, RL gym, image reconstruction, texture baking). No tool feels redundant or trivial.

Completeness4/5

The surface covers the full scene lifecycle: create (from_image), validate, render, simulate, convert, bake textures, link/share, and a complete gym reset/step/close loop. Minor gaps exist around asset/session management (no list or delete for texture packs or active gym sessions), but nothing blocks core workflows.

Maintenance

ActivityActive
ResponsivenessUsually handled