openreality-mcp
v0.4.0Open Reality OS as MCP tools: drive scan upload, reconstruction, scene query, scene agents, and robot-training exports from Claude Code, Claude desktop, Codex…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
workspace_list_scenes List scenes in the account
List all persisted scenes in the signed-in Open Reality account (newest first). Also reports which scan_ids are NEW since this machine last listed — the account is the sync layer: scans made on the phone or the web appear here. Use scene_card next for anything you want context on.
| Parameter | Type | Description |
|---|---|---|
since_epoch_s | number | Only return scenes created at/after this epoch-seconds timestamp |
workspace_upload_video Upload a video for reconstruction
Upload a local video file (.mp4/.mov/.avi/.mkv/.webm, ≤1 GB) into the account and start a reconstruction job. Returns {job_id, scan_id} immediately (202); follow with workspace_job_wait. The scene appears in workspace_list_scenes when the job is done.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path of the local video file |
label | string | Human label for the scene (X-Scene-Label) |
source | string | Set ONLY for depth-camera footage (X-Demo-Source provenance tag) |
workspace_upload_recording Upload a robot recording
Upload a robot recording (DimOS memory2 .db, ≤2 GB) into the account. Runs the recordings pipeline (recon → odometry-consistency score → QC gate); the scene persists as source="robot_recording" with the QC report under derived/demo/recordings/. Returns {job_id, scan_id}; follow with workspace_job_wait.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path of the local .db recording |
workspace_upload_splat Import a Gaussian splat
Import a local .ply/.spz Gaussian splat as a scene (source="imported_splat", honestly degraded report). ≤64 MiB uploads inline and returns {scan_id, gaussian_count} synchronously; larger files go through the chunked lane and return {job_id, scan_id} to poll with workspace_job_wait. Non-gaussian PLYs are refused (422 not_a_gaussian_splat).
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path of the local .ply or .spz file |
label | string | Human label for the scene |
workspace_job_status Check a workspace job
One status read of an ingest/export job (GET /api/workspace/jobs/<job_id>): {status: queued|running|done|error, stage?, scan_id?, error?}.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
workspace_job_wait Wait for a workspace job
Poll an ingest/export job until it is done or errored (or the timeout passes). Returns the final status plus the stage trail observed.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
poll_s | number | |
timeout_s | number |
scene_card Scene context card
The Tier-1 context card for a scene: source, metric/anchor state, room + summary, closed-world object inventory, ground frame, and workspace artifacts (agent runs, measurements, paths). Small by design — pull details with the other scene tools.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string |
scene_list_objects List scene objects
The closed-world object inventory from the persisted record (facts.objects): model query, operator relabel, confidence, world center/extent. These uids/labels are the ONLY objects that exist — never invent others.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
include_dismissed | boolean |
scene_measure_distance Measure a distance
Distance between two WORLD-frame points (POST /measure). The response units are "m" ONLY when the scene has a metric anchor — otherwise "relative". ALWAYS report the units and scale_source with the value; never say metres for relative units.
| Parameter | Type | Description |
|---|---|---|
point_a * | array | |
point_b * | ||
scan_id * | string |
scene_measure_angle Measure an angle
Angle at the vertex (second point) of three WORLD-frame points (POST /measure, kind=angle). Returns degrees.
| Parameter | Type | Description |
|---|---|---|
points_world * | array | |
scan_id * | string |
scene_plan_path Plan a robot path
Plan a path through scanned free space to an object (by uid) or a world point (POST /nav/plan). Provide exactly one of object_uid | point_world. Honest failures: 422 no_geometry / no_floor / unreachable_goal (with a nearest-reachable suggestion). The response provenance line ("not certified navigation") must ride along with any use. The per-frame camera flythrough (poses) is left on disk by default and the waypoint list comes back as an evenly-sampled preview — both counts and the full-trajectory artifact key ride along; artifact_fetch(doc_key) for the whole thing.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
clearance | number | |
include_poses | boolean | Inline the per-frame 4x4 c2w flythrough (large — one pose per frame) |
max_waypoints | integer | Cap on waypoints returned inline; the plan is sampled evenly to fit |
object_uid | string | |
point_world | array | |
start | ||
up_override | string |
scene_planes Detect floor/wall planes
Floor + wall plane candidates from the scene geometry (POST /planes; cached per-scene). Used for restyle scoping and understanding room structure.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
force | boolean | Recompute even when a cached result exists |
max_walls | integer |
scene_ground_frame Read the ground frame
Read the recorded floor/ceiling frame (GET /ground_frame). If vertical_axis_known is false, the numbers are ABSENT on purpose — say so rather than guessing heights.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string |
scene_ground_frame_fit Fit the ground frame
(Re)fit the floor plane and write the result onto the scene metrics (POST /ground_frame). dry_run=true computes without persisting.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
dry_run | boolean |
scene_anchor Anchor the scene to metres
Metric-anchor calibration (POST /anchor): two picked world points + their real distance in metres. Non-destructive (writes NEW derived/anchor/* artifacts + the derived_latest pointer) and it is what unlocks units:"m" for measure/nav/export. materialize:"job" returns 202 with a job_id to poll via workspace_job_wait.
| Parameter | Type | Description |
|---|---|---|
distance_m * | number | |
point_a * | array | |
point_b * | ||
scan_id * | string | |
materialize | string |
scene_keyframe_image Fetch a keyframe image
One capture keyframe as an image (GET /keyframes/<blob_key>). blob_key comes from the scene detail keyframes[] refs. Real capture photos — cite as photo evidence.
| Parameter | Type | Description |
|---|---|---|
blob_key * | string | |
scan_id * | string |
scene_synthetic_views List synthetic views
Renders of the scene's own splat registered as evidence (GET /synthetic_views). These are NOT photographs — always carry the "synthetic view" provenance when citing.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string |
scene_synthetic_view_image Fetch a synthetic view image
One synthetic view PNG (a RENDER of the splat, not a photo — say so when citing).
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
view_id * | string |
scene_lod LOD status
Level-of-detail index status for the scene splat (GET /lod). Always 200 — read `status` (ready|none|running|error|not_needed).
| Parameter | Type | Description |
|---|---|---|
scan_id * | string |
scene_lod_build Build LOD variants
Spawn the LOD decimation job (POST /lod → 202 {job_id}; 409 lod_job_active when one is already running). Poll with workspace_job_wait.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string |
scene_imported_objects Imported-splat objects status
Status of geometry-derived objects for an imported splat (GET /imported_objects).
| Parameter | Type | Description |
|---|---|---|
scan_id * | string |
scene_imported_objects_run Cluster imported-splat objects
Cluster an imported splat's geometry into facts.objects (POST /imported_objects). Labels carry geometry/synthetic-view provenance — confidence 0.0 is honest, not a bug.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string |
scene_object_complete Complete an object to 3D
SAM-3D-Objects mesh completion for a segmented object (POST /objects/<uid>/complete → 202 {job_id}, broker-thread lane). Poll with scene_job_wait. Output is GENERATED geometry (honesty envelope in the artifact meta.json).
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
uid * | string |
scene_object_variants Generate object variants
TRELLIS variant generation for a completed object (POST /objects/<uid>/variants → 202 {job_id}). Optional body fields pass through (see server docs). GENERATED assets.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
uid * | string | |
body | object | Optional route body passthrough |
scene_segment Segment an object (advanced)
SAM-3 click segmentation (POST /segment). Advanced: the body must match the server contract (click point + view selection — see routes_sam3d.py / the OS UI). Provided as a raw passthrough so the full surface stays reachable.
| Parameter | Type | Description |
|---|---|---|
body * | object | Raw request body for the segment route |
scan_id * | string |
scene_job_status Check a scene job
One status read of a broker-thread scene job (SAM-3D completion, variants, view renders). NOTE: these jobs honestly 404 across a broker restart.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
scan_id * | string |
scene_job_wait Wait for a scene job
Poll a broker-thread scene job until done/error/timeout.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
scan_id * | string | |
poll_s | number | |
timeout_s | number |
agent_annotate Run the annotation agent
Start the five-phase scene annotation run (survey → labels → description → dimensions → key features) on the server-side scene agent. 202 {run_id}; one active run per scene (409 agent_run_active carries active_run_id — or set attach_if_active). Costs bounded server-side LLM calls. Follow with agent_run_events wait_for_done.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
attach_if_active | boolean |
agent_replay Replay a recorded run
Re-serve a recorded run's persisted event log as a new (replay-badged, $0) run. Use for reviewing what an earlier run found without spending LLM calls.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
source_run_id * | string | |
speed | number |
agent_pilot Run the pilot agent
Give the pilot agent a free-text instruction (navigate/inspect flows; tools: list_scene_objects, plan_path, measure_distance). 202 {run_id}; poll agent_run_events.
| Parameter | Type | Description |
|---|---|---|
instruction * | string | |
scan_id * | string |
agent_chat Chat with the scene agent
One chat turn with the scene agent (its own bounded run; the server agent may call its scene tools mid-turn). By default waits for the run to finish and returns the event transcript. The agent's numbers carry units/scale_source — repeat them honestly.
| Parameter | Type | Description |
|---|---|---|
message * | string | |
scan_id * | string | |
poll_s | number | |
run_id | string | Attach to a prior run's context |
timeout_s | number | |
wait | boolean |
agent_run_events Read run events
Read a run's event log from a cursor (GET /runs/<run_id>/events?after=). With wait_for_done, polls at ~1 Hz (the web client's cadence) until the run finishes.
| Parameter | Type | Description |
|---|---|---|
run_id * | string | |
scan_id * | string | |
after | integer | |
poll_s | number | |
timeout_s | number | |
wait_for_done | boolean |
agent_runs List agent runs
The scene's run index (newest first) + which run is live: kind, status, cost_usd, llm_calls, findings. Persisted runs can be replayed for $0 with agent_replay.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string |
export_manifest Export dry-run manifest
What an export WOULD contain (GET /demo/export/manifest): file tree + sizes, complete/absent components, and whether the zip route would work. No build, no writes. Formats: openreality | groot_lerobot_v2 | isaac_usd | mujoco_mjcf (the simulator formats isaac_usd / mujoco_mjcf are metric-gated — they need an anchor).
| Parameter | Type | Description |
|---|---|---|
format * | string | |
scan_id * | string | |
source | string | 'original' (default) or a derived/... key |
export_prepare Build an export
Build the export zip as a background job (POST /demo/export/prepare → 202 {job_id}; 409 export_job_active when one is running). With wait=true (default) polls the job and returns the prepared artifact (including download_path). Then artifact_fetch it. For MuJoCo prefer export_mujoco, which also downloads and unpacks the scene.
| Parameter | Type | Description |
|---|---|---|
format * | string | |
scan_id * | string | |
poll_s | number | |
source | string | |
timeout_s | number | |
wait | boolean |
export_status Prepared-export status
What is prepared for scene+format (GET /demo/export/prepared). Always 200 with {status: ready|running|error|none}; ready carries the artifact + download_path.
| Parameter | Type | Description |
|---|---|---|
format * | string | |
scan_id * | string | |
source | string |
export_mujoco Export the scene to MuJoCo
One call from scene to a loadable MuJoCo model: builds (or reuses a fresh) mujoco_mjcf export, downloads it and unpacks it to disk, and returns the path to scene.xml — load it with mujoco.MjModel.from_xml_path(path) or `python -m mujoco.viewer --mjcf=<path>` (needs mujoco>=3.3). METRIC-GATED: an un-anchored scene is refused with 409 metric_scale_required — run scene_anchor first. Collision is primitives only (a floor plane + one upright box per detected object); the scan mesh is visual-only. A fresh build meshes the scene on a 64 GB container and takes minutes. Bytes never enter context.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
force | boolean | Rebuild even when a fresh export is already prepared |
out_dir | string | Absolute directory to unpack into (default <artifacts_dir>); the scene lands in <out_dir>/<scan_id>/mujoco/ |
poll_s | number | |
source | string | 'original' (default) or a derived/... key |
timeout_s | number |
artifact_fetch Fetch a derived artifact to disk
Download any derived/... artifact (export zips, LOD levels, agent run logs, QC reports, masks) to a local file and return the path — bytes NEVER go into context. Default target: <artifacts_dir>/<scan_id>/<key>.
| Parameter | Type | Description |
|---|---|---|
derived_key * | string | A derived/... key (from manifests, pointers, job results) |
scan_id * | string | |
out_path | string | Absolute path override for the output file |
artifact_fetch_splat Fetch the scene splat to disk
Download the scene's original splat.ply to a local file and return the path. For a render-sized variant prefer the LOD levels (scene_lod → artifact_fetch of a level key).
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
out_path | string |
artifact_fetch_cloud Fetch the scene point cloud to disk
Download the scene's cloud.ply to a local file and return the path.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
out_path | string |