three_live_render
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
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Inline Three.js scene script or HTML document. Provide either `code` or `inputPath`. | |
| grid | No | Draw 1.0m / 0.25m reference ground grid and X/Y/Z origin axes. | |
| view | No | 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). | quad |
| width | No | Output image width in pixels (defaults to 1024 for `quad`, 512 for single view). | |
| frames | No | Number of frames for temporal filmstrip or turntable capture. | |
| height | No | Output image height in pixels (defaults to 1024 for `quad`, 512 for single view). | |
| duration | No | Duration in seconds for multi-frame temporal capture. | |
| inputPath | No | Path to a .js, .html, or .glb file on disk when `code` is not provided. | |
| reference | No | 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`. | |
| turntable | No | Render a 360-degree turntable orbit across multiple frames. | |
| outputPath | No | Optional file path (.png or .gif) to also save the rendered image on disk. | |
| annotations | No | Draw 3D AABB wireframes and 2D node name callouts. | |
| 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. | |
| triggerSelect | No | Optional interactive node name to trigger `onSelect` at t = 0. | |
| texturePackPath | No | Optional path to a texture pack JSON file (e.g. written by `three_live_bake_textures`). |