three_live_sim
Simulate deterministic 60 Hz Three.js/WebXR physics, mechanical joints, character controllers, and timed interactions to test scene behavior and render keyframe filmstrips.
Instructions
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.
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_sim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Inline Three.js scene script or HTML document. Provide either `code` or `inputPath`. | |
| actions | No | Optional timed interaction events (e.g. `[{"at": 0.2, "type": "select", "target": "crystal"}]`). | |
| duration | No | Simulation duration in seconds (default 2.0s, max 60.0s). | |
| inputPath | No | Path to a .js, .html, or .glb file on disk when `code` is not provided. | |
| 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. | |
| snapshotFrames | No | Optional 60 Hz tick indices (e.g. [0, 30, 60, 120]) to render into a horizontal filmstrip. | |
| outputStripPath | No | Optional file path (.png or .gif) to write the rendered keyframe strip on disk. | |
| texturePackPath | No | Optional path to a texture pack JSON file (e.g. written by `three_live_bake_textures`). | |
| includeFilmstrip | No | When true, renders a keyframe filmstrip PNG and includes it as an image content block. |