{"api":[{"group":"Tasks","path":"ctx.task.stack","signature":"stack({robot, objects, target, shuffle?})","description":"Panda physically stacks 1–10 boxes, then verifies stability and ends the episode. target is the support point; boxes must fit its gripper (at most 6.5 cm wide). Shuffle uses the episode seed.","example":"function start(ctx) { ctx.task.stack({robot: ctx.robot.id, objects: [\"red\", \"blue\"], target: [.1, 0, .74], shuffle: true}); }"},{"group":"Tasks","path":"ctx.task.pickPlace","signature":"pickPlace({robot, objects: [id], target})","description":"Panda or TALOS grasps and places one box; target is its final center. TALOS uses its right gripper with the Grasping scene solver and a 7–10 × 2.5–5 × 3.5–5.5 cm box. Contact, lift and settled placement are checked. Automatically ends the episode.","example":"ctx.task.pickPlace({robot: ctx.robot.id, objects: [\"box\"], target: [.1,.1,.76]});"},{"group":"Tasks","path":"ctx.task.pickInto","signature":"pickInto({robot, objects, container, shuffle?})","description":"Panda picks apples (2.5–7.5 cm, at most 0.2 kg) or small boxes into a fixed upright bowl, mug or pot with automatic hollow collisions. Requires Grasping solver, a clear reachable path and a firm grip: tested apples use friction 1.5 and Panda gripper stiffness 1000 N/m, damping 31.6 N·s/m. Checks opposing contact, actual lift, release, stable containment and supporting container contacts. Ends the episode on success or failure.","example":"function start(ctx) { ctx.task.pickInto({robot:ctx.robot.id,objects:['red-apple','green-apple'],container:'bowl'}); }"},{"group":"Tasks","path":"ctx.task.status","signature":"status() → TaskState | null","description":"Current phase, object order, verified placement count, opposing-finger holding contact and measured lift status.","example":"ctx.log(ctx.task.status());"},{"group":"Tasks","path":"reward(ctx)","signature":"reward(ctx) → number | number[]","description":"Authored task reward component. Runs every 2 ms physics step; the finite value or vector it returns must match the task reward shape and is accumulated into the episode reward recorded in the dataset metadata (meta/episodes, meta/info.json and meta/stats.json). A wrong-shaped reward is rejected rather than coerced.","example":"function reward(ctx) {\n  const p = ctx.scene.position(ctx.robot.id);\n  return Math.hypot(p[0] - 0.45, p[1], p[2] - 0.25);\n}"},{"group":"Tasks","path":"observe(ctx)","signature":"observe(ctx) → number | number[]","description":"Authored task observation component. Returns the task observation each step; its element count must exactly match the declared observation shape, otherwise it is rejected rather than padded or truncated.","example":"function observe(ctx) {\n  const p = ctx.scene.position(ctx.robot.id);\n  return [ctx.time, p[2]];\n}"},{"group":"Tasks","path":"done(ctx)","signature":"done(ctx) → false | {success, reason}","description":"Authored task termination component. Returns false (or nothing) to continue the episode, or {success, reason} to finish it. Runs every physics step after the observation and reward components.","example":"function done(ctx) {\n  return ctx.time >= 5 ? { success: true, reason: \"Settled\" } : false;\n}"},{"group":"Tasks","path":"ctx.randomize","signature":"randomize({poses?, mass?, friction?, lighting?}) → record","description":"Seeded scene randomization keyed to ctx.episode.seed: perturb free primitive positions (and yaw) within per-axis margins, scale dynamic mass and object friction by a uniform factor, and scale authored area-light intensity. Authored and randomized values are returned and recorded in episode metadata; Reset restores the authored scene.","example":"const r = ctx.randomize({poses:{x:0.05,z:0.02,yaw:Math.PI/4},mass:{factor:0.2},friction:{factor:0.2},lighting:{intensity:0.3}});"},{"group":"Policy","path":"ctx.policy.act","signature":"act(id, observation) → number[]","description":"Runs a registered ONNX policy on a flat float observation vector and returns its raw action vector (actuator commands). The policy must be registered by the host before scripts run; the model fixes the observation and action lengths. Inference is synchronous — one forward pass per call, up to one per 2 ms step — and each call counts against the per-update engine-call budget. An unknown policy, a wrong-length observation or a model the runtime cannot execute throws a named error; controls are never fabricated.","example":"const controls = ctx.policy.act(\"reach-policy\", [0.5, -0.2, 1.0]);\nctx.robot.setControls(controls);"},{"group":"Policy","path":"ctx.policy.list","signature":"list() → policy[]","description":"Lists every registered policy with its id, model input/output names and the observation and action vector lengths.","example":"ctx.log(ctx.policy.list());"},{"group":"Lifecycle","path":"ctx.episode.finish","signature":"finish(success, reason)","description":"Ends the episode, pauses playback, and finalizes recording on the next scheduled sensor frame. Remaining scripts stop. Reset before running again.","example":"ctx.episode.finish(true, \"Object settled at goal\");"},{"group":"Lifecycle","path":"ctx.episode.seed","signature":"seed → number","description":"Seed for this episode. Recording seed controls reproducible Math.random and task shuffles.","example":"ctx.log(ctx.episode.seed);"},{"group":"Robot","path":"ctx.robot.pose","signature":"pose({body, offset}) → {position, quaternion}","description":"Live world pose of a point fixed to a named robot body. Offset in meters; quaternion is [w,x,y,z].","example":"ctx.robot.pose({body:\"hand\",offset:[0,0,.105]});"},{"group":"Robot","path":"ctx.robot.solveIK","signature":"solveIK({body, offset, joints, position, quaternion?})","description":"Scratch-state damped least-squares IK. Returns controls, convergence and residuals; never changes live physics. Uses 1–12 named position-actuated joints. It is not collision planning.","example":"const solution = ctx.robot.solveIK({body:\"hand\",offset:[0,0,.105],joints:[\"joint1\",\"joint2\",\"joint3\",\"joint4\",\"joint5\",\"joint6\",\"joint7\"],position:[.4,0,.3],quaternion:[0,1,0,0]});\nif(solution.converged) ctx.robot.setControls(solution.controls);"},{"group":"Robot","path":"ctx.robot.trajectory","signature":"trajectory(segments, {measure?})","description":"Authors and starts a joint-space trajectory for this robot. Each segment is {target, duration}: target is a full actuator control vector or a {name: value} map, duration is its seconds. Segments blend continuously in time (C1 smoothstep), and every target is validated against declared actuator limits. While the trajectory owns the robot, ctx.robot.setControls is refused. Optional {measure: {body, offset, position, quaternion?}} reports residual pose error once complete.","example":"const sol = ctx.robot.solveIK({body:\"hand\",offset:[0,0,.105],joints:[\"joint1\",\"joint2\",\"joint3\",\"joint4\",\"joint5\",\"joint6\",\"joint7\"],position:[.4,0,.3]}); ctx.robot.trajectory([{target:sol.controls,duration:.6}], {measure:{body:\"hand\",offset:[0,0,.105],position:[.4,0,.3]}});"},{"group":"Robot","path":"ctx.robot.trajectoryStatus","signature":"trajectoryStatus() → status | null","description":"Current motion trajectory state: active, done, segment index, elapsed/total seconds, and poseError ({position, orientation}) against the authored measure target once the trajectory is complete. Null when no trajectory is active.","example":"const s = ctx.robot.trajectoryStatus(); if (s && s.done && s.poseError.position < 0.01) ctx.episode.finish(true, \"reached\");"},{"group":"Scene","path":"ctx.scene.contacts","signature":"contacts(idOrName) → contact[]","description":"Up to 256 live contacts involving a robot or primitive: fully namespaced body names, world position and signed distance in meters.","example":"ctx.log(ctx.scene.contacts(ctx.robot.id));"},{"group":"Scene","path":"ctx.onCollision","signature":"onCollision({a, b}, {enter?, stay?, exit?})","description":"Registers enter/stay/exit callbacks for contact between two named entities. enter fires once when the pair first touches, stay every 2 ms step while contact persists, exit once when it separates or either entity is removed from the scene. enter/stay receive the resolved pair {a, b}, bodies, position and distance; exit receives {a, b}. Fires one physics step after contact changes.","example":"ctx.onCollision({a:\"box\", b:\"table\"}, {enter:c=>ctx.log(c.a, c.b), exit:()=>ctx.log(\"separated\")});"},{"group":"Scene","path":"ctx.onTrigger","signature":"onTrigger(volume, {enter?, stay?, exit?})","description":"Registers enter/stay/exit callbacks for a trigger volume entity. Enable Trigger volume in the Physics Inspector for a non-solid overlap volume; unmarked entities retain contact-watcher behavior. enter fires once when any other entity first contacts it, stay every 2 ms step while anything is inside, exit once when it empties or the volume or its last occupant is removed from the scene. enter/stay receive {volume, partners, contacts} with partner entities resolved.","example":"ctx.onTrigger(\"goal-zone\", {enter:e=>ctx.log(e.partners), exit:()=>ctx.log(\"empty\")});"},{"group":"Input","path":"ctx.onKey","signature":"onKey(code, {press?, release?})","description":"Registers a keyboard binding for a KeyboardEvent.code such as \"Space\", \"KeyW\" or \"ArrowUp\". press fires once when the key goes down, release once when it goes up; held-key auto-repeat never re-fires. Each handler receives {kind, code, edge}. Bindings are ignored while an editor text field has focus.","example":"ctx.onKey(\"KeyW\", {press:()=>ctx.log(\"forward\"), release:()=>ctx.log(\"stop\")});"},{"group":"Input","path":"ctx.onMouse","signature":"onMouse(button, {press?, release?})","description":"Registers a mouse binding for \"left\", \"middle\" or \"right\". press fires once on pointer down and release once on pointer up, with the same press/release edges as ctx.onKey.","example":"ctx.onMouse(\"left\", {press:()=>ctx.log(\"clicked\")});"},{"group":"Lifecycle","path":"start","signature":"start(ctx)","description":"Runs once when the simulation first advances. Reset creates a fresh script context.","example":"function start(ctx) {\n  ctx.log(\"Ready\", ctx.self);\n}"},{"group":"Lifecycle","path":"update","signature":"update(ctx)","description":"Runs before every 2 ms physics step, including while recording. Pause preserves variables.","example":"function update(ctx) {\n  // Read state and command controls here.\n}"},{"group":"Context","path":"ctx.self","signature":"ctx.self → string","description":"The ID of the entity this behavior is attached to.","example":"ctx.log(ctx.self);"},{"group":"Context","path":"ctx.time","signature":"ctx.time → number","description":"Elapsed simulation time in seconds, independent of display frame rate.","example":"const phase = Math.sin(ctx.time);"},{"group":"Context","path":"ctx.dt","signature":"ctx.dt → number","description":"Fixed physics step duration: 0.002 seconds.","example":"elapsed += ctx.dt;"},{"group":"Context","path":"ctx.parameters","signature":"ctx.parameters → object","description":"Authored number, boolean and text fields from this behavior’s Inspector. Frozen at simulation start.","example":"const amplitude = ctx.parameters.amplitude;"},{"group":"Scene","path":"ctx.scene.entities","signature":"entities() → EntityInfo[]","description":"Lists authored robots, primitives, the camera and optional table with IDs, names and component names. Component names reflect the live set (a static primitive has no RigidBody; runtime Mesh/RigidBody/Collider edits are included). Does not include internal robot links.","example":"ctx.log(ctx.scene.entities());"},{"group":"Scene","path":"ctx.scene.find","signature":"find(idOrName) → Entity | null","description":"Finds an authored entity with id, name, parent, components, hasComponent(name), position(), rotation(), localPosition(), localRotation() and applyForce(vector). Returns null if absent. Duplicate names are rejected; use its stable ID instead. Empty entities (transform-only group nodes) are listed with parent and Transform.","example":"const box = ctx.scene.find(\"Box 1\");\nif (box) ctx.log(box.position(), box.localPosition());"},{"group":"Scene","path":"ctx.scene.addComponent","signature":"addComponent(entity, spec) → id | type","description":"Adds a component to an authored entity at run time. {name, source, parameters?} adds a behavior: it runs its own start once and then update on every fixed 2 ms step alongside authored behaviors, and the generated component ID is returned. {type: \"Mesh\" | \"RigidBody\" | \"Collider\", …fields} adds a typed component to a primitive object and returns the type name: Mesh (optional color \"#rrggbb\" and finish matte/satin/metal/gloss) is render-only and changes what is drawn and recorded without touching physics; RigidBody (optional mass 0.01–20 kg, friction 0–3) and Collider rebuild the compiled physics model after the current tick with every other body's state preserved. Adding a component the object already has throws; Transform, Camera and Robot cannot be added or removed; transient entities spawn/destroy with ctx.scene.spawn/ctx.scene.destroy. All runtime components are transient: Reset restores the authored set.","example":"const id = ctx.scene.addComponent(\"Box 1\", {name: \"Spin\", source: \"function update(ctx) { ctx.log(ctx.time); }\"});\nctx.scene.addComponent(\"Box 1\", {type: \"RigidBody\", mass: 0.5});"},{"group":"Scene","path":"ctx.scene.removeComponent","signature":"removeComponent(idOrName) · removeComponent(entity, type)","description":"With one argument, removes a behavior component by ID or name, stopping its updates after the current tick. With an entity and a type (\"Mesh\", \"RigidBody\" or \"Collider\"), removes that typed component from a primitive after the current tick: a removed Mesh is no longer drawn or recorded; a removed RigidBody stops the body where it is (it becomes static); a removed Collider stops every contact with the object. Removing a component the entity lacks throws. Authored components removed this way return on Reset.","example":"ctx.scene.removeComponent(\"Spin\");\nctx.scene.removeComponent(\"Box 1\", \"RigidBody\");"},{"group":"Scene","path":"ctx.scene.spawn","signature":"spawn({shape, position, size, rotation?, mass?, friction?, color?}) → id","description":"Spawns a dynamic primitive (box, sphere or cylinder) at run time and returns its entity ID. size is the full size in meters (box X/Y/Z, matching sphere diameter, cylinder diameter/height); position is the world pose in meters and rotation optional Euler XYZ radians. mass defaults to 0.15 kg, friction to 0.6 and color to #adbb7c. The body is physics-coupled: it falls, collides, and resolves through ctx.scene.find/entities/position/contacts. The entity materializes on the next tick. Spawned entities are transient — Reset removes every one, and destroy releases the body. At most 64 spawned entities may exist at once.","example":"const id = ctx.scene.spawn({shape: \"box\", position: [0, 0, 1], size: [0.1, 0.1, 0.1], mass: 0.5});\nctx.scene.destroy(id);"},{"group":"Scene","path":"ctx.scene.destroy","signature":"destroy(idOrName)","description":"Destroys a runtime-spawned entity by ID or name and releases its physics body. Authored entities cannot be destroyed at run time. Destroying a spawned entity drops its contacts; Reset also removes everything spawned.","example":"ctx.scene.destroy(\"spawned-1\");"},{"group":"Scene","path":"ctx.scene.robots","signature":"robots() → RobotInfo[]","description":"Lists robot IDs, names, actuator names, units, limits and control kinds.","example":"ctx.log(ctx.scene.robots());"},{"group":"Scene","path":"ctx.scene.robot","signature":"robot(idOrName) → Robot","description":"Addresses a specific robot. ctx.robot addresses the attached robot, or the first robot for other entities.","example":"const arm = ctx.scene.robot(\"UR5e\");\nctx.log(arm.controls());"},{"group":"Scene","path":"ctx.scene.position","signature":"position(idOrName) → [x, y, z]","description":"Reads world position in meters. Robot positions refer to their root body. Coordinates use Z up.","example":"const xyz = ctx.scene.position(ctx.self);"},{"group":"Scene","path":"ctx.scene.rotation","signature":"rotation(idOrName) → [x, y, z]","description":"Reads the live world rotation in radians (Euler angles). Robots refer to their root body; transform-only empty entities (and the camera and table) report their authored orientation, which for the camera and table is [0,0,0].","example":"const euler = ctx.scene.rotation(\"Group\");"},{"group":"Scene","path":"ctx.scene.localPosition","signature":"localPosition(idOrName) → [x, y, z]","description":"Reads position in meters relative to the parent entity. A root entity’s local position equals its live world position; a parented (welded) part reports its constant parent-frame offset.","example":"const local = ctx.scene.localPosition(\"Lid\");"},{"group":"Scene","path":"ctx.scene.localRotation","signature":"localRotation(idOrName) → [x, y, z]","description":"Reads rotation in radians relative to the parent entity. A root entity’s local rotation equals its live world rotation; a parented (welded) part reports its constant parent-frame rotation.","example":"const local = ctx.scene.localRotation(\"Lid\");"},{"group":"Scene","path":"ctx.scene.parent","signature":"parent(idOrName) → id | null","description":"Returns the parent entity’s ID, or null when the entity is at the scene root. Empty entities may parent and be parented.","example":"ctx.log(ctx.scene.parent(\"Lid\"));"},{"group":"Physics","path":"ctx.scene.applyForce","signature":"applyForce(idOrName, [x, y, z])","description":"Applies world-space force to a dynamic primitive for one step. Components must be within ±1000 newtons.","example":"ctx.scene.applyForce(ctx.self, [1, 0, 0]);"},{"group":"Physics","path":"ctx.physics.raycast","signature":"raycast(origin, direction, maxDistance?) → hit | null","description":"Casts a world-space ray (Z up, meters) and returns the nearest hit: its distance and world point in meters, the struck body name, and the owning entity. Direction is normalized automatically; maxDistance caps the ray length (default 20 m, must satisfy 0 < maxDistance <= 1000 m, and non-finite values throw). Returns null on a miss. Read-only: live physics state is unchanged.","example":"const hit = ctx.physics.raycast([0, 0, 1], [0, 0, -1], 2);\nif (hit) ctx.log(hit.distance, hit.point, hit.body, hit.entity);"},{"group":"Sensors","path":"ctx.sensor.imu","signature":"imu(entity) → {entity, position, orientation, linearVelocity, angularVelocity}","description":"Reads the base body of a robot or scene object: world position (meters, Z up), orientation quaternion [w,x,y,z], linear velocity [vx,vy,vz] m/s and angular velocity [wx,wy,wz] rad/s. Values come from live MuJoCo state and match the physics trajectory (a free base falls at 9.81 m/s²). Resolve by ID or unique name.","example":"const s = ctx.sensor.imu(ctx.robot.id) || ctx.sensor.imu(\"Box 1\");\nctx.log(s.orientation, s.linearVelocity);"},{"group":"Sensors","path":"ctx.sensor.force","signature":"force(entity) → {entity, force, magnitude}","description":"Net contact force the environment exerts on a robot, object or spawned body, in newtons, world frame. Read from the contacts of the previous 2 ms step; once a body is at rest the magnitude matches its weight within 0.05 N at 1 kg (0.5% of the weight, whichever is larger).","example":"const f = ctx.sensor.force(\"Box 1\");\nctx.log(f.magnitude, f.force); // ≈ mass × 9.81 N when resting"},{"group":"Sensors","path":"ctx.sensor.lidar","signature":"lidar({entity?, position?, forward?, count?, fov?, maxRange?})","description":"Casts a fan of horizontal rays from a sensor pose. With entity, the sweep starts at its base and faces its base +X axis; otherwise give position and optional forward. count is 1–720 rays (default 61), fov the total horizontal field of view in radians (default π), maxRange the per-ray cap in meters (default 20). Returns origin, forward, count, angles and per-ray ranges (meters, null on a miss). Read-only.","example":"const sweep = ctx.sensor.lidar({entity: ctx.robot.id, fov: Math.PI / 2});\nctx.log(sweep.ranges);"},{"group":"Animation","path":"ctx.animation.play","signature":"play(idOrName)","description":"Starts playing an authored animation clip from the current simulation time. A transform clip drives a free primitive along its keyframed position curve; a joint clip drives a robot actuator toward its keyframed control target. Playback interpolates keyframes linearly, holds before the first and after the last (or loops when the clip is authored to), and is deterministic under recording.","example":"ctx.animation.play(\"Sweep\");"},{"group":"Animation","path":"ctx.animation.stop","signature":"stop(idOrName)","description":"Stops an authored animation clip by ID or name. The animated entity keeps its current live position or control target; physics resumes from there.","example":"ctx.animation.stop(\"Sweep\");"},{"group":"Animation","path":"ctx.animation.list","signature":"list() → clip[]","description":"Lists authored animation clips with id, name, entity, target, duration in seconds, loop flag and whether each one is currently playing.","example":"ctx.log(ctx.animation.list());"},{"group":"Physics","path":"ctx.physics.grasp","signature":"grasp({robot, body, offset?, object, tolerance?}) → handle","description":"Grasps a dynamic object with a robot end effector: a ball-joint \"connect\" constraint holds the object so its body origin follows the end-effector point while its orientation stays free. Contacts remain physical (no weld). Returns a handle for release. A payload whose body origin is further than tolerance (default 0.05 m) from the grasp point is reported as a failed grasp — it is never teleported into the gripper.","example":"const grip = ctx.physics.grasp({robot: ctx.robot.id, body: \"hand\", offset: [0,0,.105], object: \"block\", tolerance: .03});"},{"group":"Physics","path":"ctx.physics.release","signature":"release(handleOrId) → boolean","description":"Releases an active grasp by its handle, its payload object ID or its robot ID; the payload falls freely and its contacts behave physically again. With no argument, releases every active grasp. Returns true when something was released.","example":"ctx.physics.release(grip);"},{"group":"Physics","path":"ctx.physics.grasps","signature":"grasps() → GraspInfo[]","description":"Lists every active grasp as {id, robot, body, offset, object, tolerance}.","example":"ctx.log(ctx.physics.grasps());"},{"group":"Robot","path":"ctx.robot.controls","signature":"controls() → number[]","description":"Returns a copy of the ordered actuator command vector. Values keep the model’s original units.","example":"const targets = ctx.robot.controls();"},{"group":"Robot","path":"ctx.robot.setControls","signature":"setControls(values)","description":"Commands every actuator. Vector size and declared model ranges are validated.","example":"const targets = ctx.robot.controls();\ntargets[0] += 0.01;\nctx.robot.setControls(targets);"},{"group":"Robot","path":"ctx.robot.setControl","signature":"setControl(name, value)","description":"Commands one named actuator. Inspect its kind and range before using it.","example":"ctx.robot.setControl(\"shoulder_pan\", 0);"},{"group":"Robot","path":"ctx.robot.joint","signature":"joint(name) → number | number[]","description":"Reads actual joint position. Hinge/slide return a scalar; ball/free joints return quaternion/pose arrays.","example":"ctx.log(ctx.robot.joint(\"shoulder_pan_joint\"));"},{"group":"Console","path":"ctx.log","signature":"log(...values)","description":"Adds a timestamped console entry. console.log, console.warn and console.error are also available. The latest 100 entries are retained.","example":"ctx.log(\"Robot ready\", ctx.self);"}],"capabilities":[{"group":"Scenes & entities","capabilities":[{"name":"Blank scenes & hierarchy editing","status":"available","detail":"Blank scenes, hierarchy selection, names, move/rotate handles, duplicate/delete primitives, undo/redo, portable project ZIPs."},{"name":"Entity parenting & empty entities","status":"available","detail":"Parent/child transform hierarchies, empty transform-only group nodes, world and local transform readback."},{"name":"Reusable prefabs","status":"partial","detail":"Save an object subtree and its attached behaviors; instances get independent IDs and entity-ID parameters. Robot/sensor component prefabs and hard-coded script references need further work."},{"name":"Multiple scenes per project","status":"available","detail":"More than one authored scene in one project with a switcher and per-scene autosave; the portable ZIP round-trips every scene."},{"name":"Runtime spawn / destroy","status":"partial","detail":"Scripts spawn and destroy transient dynamic box, sphere and cylinder bodies; Reset removes them. Runtime robots, imported meshes and prefabs are not supported."}]},{"group":"Assets & rendering","capabilities":[{"name":"MJCF ZIP/XML imports","status":"available","detail":"MJCF ZIP/XML imports, Menagerie starter library, multiple robot instances, primitives, color, perspective scene camera."},{"name":"glTF / mesh asset import","status":"available","detail":"Import a self-contained GLB, fit a convex collision proxy simplified to at most 256 vertices, and pin its scale by file checksum; skinning and animation are reported as unsupported."},{"name":"Material & texture editor","status":"available","detail":"Edit an object’s base color, roughness, metalness and albedo texture on primitives and imported meshes; authored values persist through save/reopen and reach the renderer, and an invalid texture is rejected with a named validation error."},{"name":"Editable light components","status":"available","detail":"Authorable directional/point/spot lights with intensity, color and shadows in Live and Photographic rendering."},{"name":"Animation & timeline","status":"partial","detail":"Object-translation and robot joint-target clips play through ctx.animation.play and persist with their scene. Clips are authored in project JSON; a visual timeline editor is not implemented."}]},{"group":"Scripts & components","capabilities":[{"name":"JavaScript editor & diagnostics","status":"available","detail":"JavaScript editor, completion, syntax diagnostics, lifecycle callbacks, entity queries, Inspector parameters, console, enabled behaviors."},{"name":"Collision / trigger callbacks","status":"available","detail":"Pair contact events and non-solid trigger volumes with enter/stay/exit. Enable Trigger volume in the Physics Inspector; objects pass through without contact impulses."},{"name":"Breakpoints & debugger","status":"available","detail":"Pause on a set line, step a 2 ms tick, inspect locals and ctx."},{"name":"Input bindings","status":"available","detail":"Authorable key/mouse actions with press/release edges."},{"name":"Runtime behavior attachment/removal","status":"available","detail":"Scripts attach/remove registered Behavior components on existing entities during an episode; attached behaviors receive fixed-step updates; removal stops updates; Reset restores the authored behavior set without changing authored starting data."},{"name":"Mutable component API","status":"available","detail":"Scripts add/remove Mesh, RigidBody and Collider components on existing primitive objects mid-episode: Mesh edits are render-only and change what is drawn and recorded without touching physics; RigidBody and Collider edits rebuild the compiled MuJoCo model with every other body’s state preserved, a failed rebuild is reported as an error, and Reset restores the authored component set. Transform, Camera and Robot components, runtime edits on robots/camera/table, and entity spawn/destroy are not covered."}]},{"group":"Robotics & physics","capabilities":[{"name":"MuJoCo dynamics & actuators","status":"available","detail":"MuJoCo dynamics, model-derived actuators, joint readback, initial poses, mass/friction, fitted convex collision meshes, hollow containers, collision inspection, mouse force tool, authorable hinges/slides and rigid attachments, scripted forces, tool poses, position-actuated IK, contact queries."},{"name":"Physics raycasts","status":"available"},{"name":"Grasp constraints","status":"available","detail":"Authorable end-effector↔payload grasps: a ball-joint connect constraint holds the payload to the end effector while its orientation stays free, so contacts remain physical; release on command; a failed grasp is reported rather than a teleport."},{"name":"Policy inference / ONNX","status":"partial","detail":"Prepared mjlab fused G1 ONNX policies can be imported, attached, played and recorded in the browser with ONNX Runtime. Models travel in project ZIPs. Joint order, gains, observations, initial state and control timing are checked; arbitrary ONNX contracts, generic locomotion commands and motion transitions are not supported."},{"name":"Motion graph & trajectories","status":"partial","detail":"Scripted joint-space trajectories support timing, blending and control arbitration. A motion-graph editor and collision-free planner are not implemented."}]},{"group":"Sensors & data","capabilities":[{"name":"RGB camera & synchronized recording","status":"available","detail":"One RGB camera, synchronized 30 fps H.264 video and action/state rows, LeRobot v3 export, deterministic replay evidence."},{"name":"Depth & segmentation","status":"available","detail":"A lossless 16-bit millimetre depth map and instance segmentation come from visible viewport meshes, including imported assets and runtime visibility, at the same frame indices and timestamps as RGB. Sensors use aspect-matched resolution capped at 256 px."},{"name":"Multiple robot-mounted cameras","status":"partial","detail":"Fixed and robot-mounted cameras record synchronized video, depth and segmentation, preserving mount roll. Configure cameras in project JSON; a camera-rig Inspector is not implemented."},{"name":"LiDAR, IMU & force sensors","status":"partial","detail":"Scripts query horizontal LiDAR, base orientation/velocity and net contact force. LiDAR can hit its own body; IMU is a state readback, not a modeled accelerometer/gyro. Dedicated sensor components and noise models are not implemented."},{"name":"Dataset browser & streaming capture","status":"available","detail":"Browse previously recorded episodes in-app — list, preview and re-export them identically — and stream capture to device-local storage; streaming produces the same Parquet/MP4 as the buffered path."},{"name":"Bounded-memory finalize","status":"planned","detail":"Stream the packaged archive out instead of assembling the whole take in worker memory; capture-time memory is already bounded to the current frame, but finalize still reads the persisted frames back to assemble the archive."}]},{"group":"Tasks & training","capabilities":[{"name":"Pick-and-place & stacking tasks","status":"available","detail":"Panda pick-and-place/stacking, stationary TALOS pick-and-place, measured outcomes, scripted episode boundaries, seeded reset and synchronized recording."},{"name":"Task / reward components","status":"partial","detail":"Project JSON defines observation, reward and termination scripts; the runtime validates shapes and records measured rewards. A task-definition editor is not implemented."},{"name":"Policy evaluation","status":"partial","detail":"A host replay helper validates recorded controls against state and task outcomes. Editor dataset replay and closed-loop policy evaluation are not implemented."},{"name":"Domain randomization","status":"available","detail":"Scripts perturb authored object poses, mass, friction and area-light intensity with ctx.randomize, keyed to the episode seed; randomized values are recorded in episode metadata and Reset restores the authored scene."},{"name":"Automatic batch collection","status":"partial","detail":"A headless helper runs seeded episodes in tests with supplied image frames. Automatic batches using the real viewport are not wired into the editor; use single-scene recording for actual scene video."},{"name":"Walking manipulation & humanoid policies","status":"planned","detail":"Walking manipulation and generic humanoid policies are not implemented."}]}]}