Skip to main content
Glama

three_live_render

Idempotent

Render Three.js scripts, HTML, or GLB files headlessly with zero GPU into contact sheets, viewport images, filmstrips, or turntable GIFs, plus reference comparisons and spatial diagnostics.

Instructions

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.

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_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoInline Three.js scene script or HTML document. Provide either `code` or `inputPath`.
gridNoDraw 1.0m / 0.25m reference ground grid and X/Y/Z origin axes.
viewNoViewport mode: `quad` (default 4-up contact sheet) or single view (`camera`, `front`, `top`, `right`, `iso`). With `reference`, defaults to `camera` (use `front` / `right` / `top` for orthographic blueprints).quad
widthNoOutput image width in pixels (defaults to 1024 for `quad`, 512 for single view).
framesNoNumber of frames for temporal filmstrip or turntable capture.
heightNoOutput image height in pixels (defaults to 1024 for `quad`, 512 for single view).
durationNoDuration in seconds for multi-frame temporal capture.
inputPathNoPath to a .js, .html, or .glb file on disk when `code` is not provided.
referenceNoOptional reference image to match: a local PNG/JPEG file path or a `data:image/png;base64,...` / `data:image/jpeg;base64,...` URI (remote URLs are not fetched). Renders a single still view at the reference's aspect ratio and returns a comparison sheet plus `reference` metrics (`silhouetteIou`, `aspectError`, `guidance`). `height` sets the panel height (default 512, reduced as needed to keep the sheet at most 2560 px wide); `grid` and `annotations` default to false. Cannot be combined with `turntable`, `frames` > 1, or `triggerSelect`.
turntableNoRender a 360-degree turntable orbit across multiple frames.
outputPathNoOptional file path (.png or .gif) to also save the rendered image on disk.
annotationsNoDraw 3D AABB wireframes and 2D node name callouts.
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.
triggerSelectNoOptional interactive node name to trigger `onSelect` at t = 0.
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. Changed4 schema fields changedv1.5.1
    • addedInput schema / properties / reference
      Added value: +{
      +  "description": "Optional reference image to match: a local PNG/JPEG file path or a `data:image/png;base64,...` / `data:image/jpeg;base64,...` URI (remote URLs are not fetched). Renders a single still view at the reference's aspect ratio and returns a comparison sheet plus `reference` metrics (`silhouetteIou`, `aspectError`, `guidance`). `height` sets the panel height (default 512, reduced as needed to keep the sheet at most 2560 px wide); `grid` and `annotations` default to false. Cannot be combined with `turntable`, `frames` > 1, or `triggerSelect`.",
      +  "type": "string"
      +}
    • 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"
      +}
    • changedInput schema / properties / view / description
      Previous value: -"Viewport mode: `quad` (default 4-up contact sheet) or single view (`camera`, `front`, `top`, `right`, `iso`)."New value: +"Viewport mode: `quad` (default 4-up contact sheet) or single view (`camera`, `front`, `top`, `right`, `iso`). With `reference`, defaults to `camera` (use `front` / `right` / `top` for orthographic blueprints)."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, idempotentHint=true, openWorldHint=false; the description goes well beyond that by disclosing zero-GPU headless rendering, that the base64 image is returned directly to vision-capable agents, that spatial diagnostics accompany it, and what extra metrics (silhouette IoU, aspect error, guidance) the reference mode returns. It also implies filesystem side effects via `outputPath`, consistent with readOnlyHint=false.

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?

Front-loaded with the core action and output formats, then the reference-mode branch, so the most important information arrives first. It is dense with parentheticals and long clauses, but nearly every phrase carries information; only minor tightening is possible.

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

Completeness5/5

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

For a 15-parameter tool with no output schema, the description covers input sources, output formats, mode interactions, and the shape of the returned payload (image plus diagnostics/metrics). Nothing an agent needs in order to select a mode and invoke the tool correctly appears to be missing.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3; the description earns extra credit by documenting cross-parameter interactions the schema cannot express, such as `reference` forcing a single still at the reference's aspect ratio, `height` controlling panel height with a 2560px sheet cap, and `grid`/`annotations` defaulting to false in that mode. A few parameters (texturePack, triggerSelect, outputPath, duration) are left entirely to 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 (Render) plus the accepted input resources (Three.js script, HTML document, .glb) and enumerates the concrete output artifacts (4-up contact sheet, single viewport PNG, filmstrip, turntable GIF). The added reference-comparison mode is named explicitly, so an agent can tell exactly what this produces without opening the schema.

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

Usage Guidelines4/5

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

Gives clear conditional guidance: pass `reference` to get a comparison sheet, and use `front`/`right`/`top` for orthographic blueprints. It also states incompatibilities (reference cannot combine with `turntable`, `frames` > 1, or `triggerSelect`). It stops short of naming when to prefer a sibling such as three_live_from_image or three_live_convert over this tool.

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