three_live_gym_reset
Start a deterministic 60 Hz agent gym episode by compiling a Three.js scene with XR traits and returning a sessionId plus the t=0 observation for repeated step calls.
Instructions
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.
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_gym_reset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Inline Three.js scene script or HTML document. Provide either `code` or `inputPath`. | |
| view | No | Viewport for `includeFrame`. | camera |
| watch | No | Only report these node names in observations (default: all nodes, at most 64). | |
| width | No | Frame width (default 384). | |
| height | No | Frame height (default 288). | |
| inputPath | No | Path to a .js, .html, or .glb file on disk when `code` is not provided. | |
| includeFrame | No | Also return a rendered PNG of the observation. |