World Model MCP
v0.6.1Persistent 3D/2D spatial world model for AI agents with dynamic velocity and entity tracking.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
update_entity
Create or upsert one spatial entity (position, orientation, AABB, tags, properties, confidence). Manual authoring only. Omit id to create (ULID assigned). Provide id to update. Omitted fields are preserved; this is a partial merge, not a full replace. status defaults to active. confidence is 0.0–1.0 object-permanence. Does not ingest vision detections or apply action results. Returns {ok, entity_id, created:boolean, entity}. Use update_entity instead of ingest_observation when authoring entities directly rather than merging perception detections.
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable name or label of the entity |
type * | string | Categorical entity type |
affordance_mask | number | Bitmask of physical interaction affordances (1=traversable, 2=occluder, 4=container, 8=interactable, 16=threat) |
bounding_box | object | AABB bounding volume size |
confidence | number | Object permanence confidence score from 0.0 to 1.0 (default: 1.0) |
id | string | Optional entity ID (auto-generated ULID if omitted for creation) |
orientation | object | 3D Euler orientation angles in degrees |
parent_id | string | Optional parent entity ID for hierarchical containment or attachments |
position | object | 3D world position coordinates |
project | string | Optional project identifier |
properties | object | Arbitrary JSON key-value properties (physics, materials, interactive state) |
region_id | string | Optional named region ID where this entity resides |
status | string | Entity lifecycle status (default: active) |
tags | array | Array of searchable string tags |
velocity | object | 3D velocity vector (vx, vy, vz) for physical motion and predictive permanence |
query_entities
Find entities by keyword query (FTS5 search), type, region, spatial proximity, tags, or status. Alternatively, provide entity_id for single-entity location and historical trajectory lookup. Read-only. Returns {ok, count, entities[]}. Use query_entities instead of get_spatial_map when searching for specific subsets rather than exporting the full topology.
| Parameter | Type | Description |
|---|---|---|
entity_id | string | Specific entity ID to look up directly (returns location and state) |
history_limit | number | Maximum number of history events to return when include_history is true (default: 20) |
include_history | boolean | If true and entity_id is specified, returns recent movement/event history |
limit | number | Maximum number of entities to return (default: 50) |
max_distance | number | Maximum distance radius from near_position |
min_confidence | number | Minimum confidence score (e.g. 0.5 to filter out decayed entities) |
near_position | object | Center position for proximity distance search |
project | string | Optional project identifier |
query | string | Full-text search query across entity names, tags, and properties |
region_id | string | Filter by region ID |
status | string | Filter by status |
tags | array | Filter by matching tags |
type | string | Filter by entity type |
set_relation
Record or remove a spatial relationship between two entities. Actions: add, remove. Relations: on, inside, next_to, above, below, near, contains, occluded_by, connected_to, facing, holding, part_of, custom. This mutates the relation graph only, not entity poses. Returns {ok, relation}. Use set_relation instead of update_entity when establishing topological links (on, inside, contains) rather than setting entity coordinates.
| Parameter | Type | Description |
|---|---|---|
relation * | string | Type of spatial relation |
source_id * | string | Source entity ID |
target_id * | string | Target entity ID |
action | string | Action to perform (default: add) |
bidirectional | boolean | If true, automatically sets inverse relationship on target |
distance | number | Optional measured distance between entities |
metadata | object | Additional relation metadata |
offset | object | Relative offset vector from source to target |
project | string | Optional project identifier |
get_spatial_map
Export the known world as json, geojson, topological_graph, gltf, obj, joint, spatial_vlm, summary, or compact_slice. Optional region_id and min_confidence filters. Read-only snapshot of current SQLite state (not a live renderer). Returns the payload in requested format. Use get_spatial_map instead of query_entities when exporting full environment snapshots or 3D meshes rather than filtering entities.
| Parameter | Type | Description |
|---|---|---|
format | string | Export or view format (default: json, use "summary" for high-level environment overview, "compact_slice" for fast System One decision slice) |
k | number | Max nearest entities to include in compact_slice (default: 16) |
min_confidence | number | Filter out entities below confidence threshold |
observer_heading | number | Optional heading angle in degrees for compact_slice bearing calculation |
observer_position | array | Optional [x, y, z] observer position for compact_slice |
project | string | Optional project identifier |
region_id | string | Optional region ID to filter |
simulate_movement
Predict entity trajectory, test for AABB obstacle collisions, or compute navigation waypoints (modes: simulate, navigate, waypoints). Read-only simulation. Returns {ok, is_valid, destination, collisions[], waypoints[]}. Use simulate_movement instead of record_outcome when testing hypothetical motion and collisions before executing an action.
| Parameter | Type | Description |
|---|---|---|
check_collisions | boolean | Whether to test for AABB obstacle collisions (default: true) |
delta_position | object | Relative movement displacement |
duration_seconds | number | Movement duration in seconds |
entity_id | string | Entity ID to simulate or move |
mode | string | Operation mode: "simulate" (default) for physics/collision, "navigate" or "waypoints" for path planning |
project | string | Optional project identifier |
start_entity_id | string | Starting entity ID for navigation mode |
start_position | object | Starting 3D coordinates for navigation mode |
target_entity_id | string | Target destination entity ID for navigation mode |
target_position | object | Target position destination |
velocity | object | Velocity vector in units per second |
ingest_observation
Merge vision detections into the world model: re-identify by Euclidean proximity, boost confidence, and optionally reconcile against the expected frustum. This is the perception writer. It may create or update entities when reconcile=true. Returns {ok, matched[], created[], lost[], reconcile}. Use ingest_observation instead of update_entity when merging camera or sensor perception detections rather than manual authoring.
| Parameter | Type | Description |
|---|---|---|
detections * | array | List of detected objects in the frame |
field_of_view | object | |
observer_pose | object | Position and orientation of the camera/agent when observing |
project | string | Optional project identifier |
reconcile | boolean | If true, also performs/returns frustum reconciliation analysis (confirmed, new, displaced, missing) |
visual_state_id | string | Associated visual state ID from vision-memory-mcp |
get_expected_view
Compute which entities should be visible from an observer pose and FOV cone, with ray-AABB occlusion. Read-only. Does not write entities. Returns {visible[], occluded[], observer}. Use get_expected_view instead of get_spatial_map when computing observer FOV visibility and occlusion cones rather than unfiltered world states.
| Parameter | Type | Description |
|---|---|---|
observer_position * | object | Observer 3D coordinates |
fov_degrees | number | Horizontal field of view in degrees (default: 90) |
max_distance | number | Maximum view distance in units (default: 100) |
observer_orientation | object | Observer orientation (yaw determines heading direction) |
project | string | Optional project identifier |
link_to_goal
Link or unlink entities and regions to state-memory task nodes, or extract a goal-relevant spatial slice. Actions: link, unlink, get_context. link/unlink mutate association rows only. get_context is read-only. Returns {ok, action, links[]|context}. Use link_to_goal instead of record_outcome when associating entities with state-memory task nodes rather than recording physical movement deltas.
| Parameter | Type | Description |
|---|---|---|
action | string | Action to perform: "link" (default), "unlink", or "get_context" to retrieve goal-relevant spatial slice |
current_agent_position | object | Current agent position for get_context action |
entity_id | string | Target entity ID to link/unlink |
max_entities | number | Maximum entities to return for get_context action (default: 20) |
min_clearance | number | Minimum clearance distance required to satisfy the goal |
notes | string | Context notes |
project | string | Optional project identifier |
radius | number | Proximity radius around agent for get_context action (default: 30) |
region_id | string | Target region ID to link |
relationship | string | Role of entity relative to goal (default: target) |
success_region | object | Spatial bounding volume region defining goal arrival |
target_entity_id | string | Direct target entity ID for navigation and clearance tracking |
task_id | string | State memory task node ID |
record_outcome
Record action execution results, movement deltas, property changes, entity destruction, or spool outcome ingestion from 60Hz loop. Not for vision ingest or manual pose edits. Mark entity destroyed via status: "destroyed". Returns {ok, action, success:boolean, ...}. Use record_outcome instead of update_entity when applying executed action results and status deltas rather than hand-authoring entities.
| Parameter | Type | Description |
|---|---|---|
action | string | Action type: "record" (default) for single outcome or "from_tick" for 60Hz batch spool ingestion |
action_name | string | Name of the executed action (e.g. move_to, pickup, place, destroy) |
affordance_mask | number | Updated affordance bitmask after action |
destroyed | boolean | If true, marks entity as destroyed |
entity_id | string | Primary entity affected |
items | array | Alias for spooled_outcomes batch array |
project | string | Optional project identifier |
property_changes | object | Updated properties to merge |
resulting_position | object | New position of entity after action |
resulting_velocity | object | New velocity vector of entity after action |
spooled_outcomes | array | Batch of spooled outcomes to ingest from 60Hz loop off-tick execution |
success | boolean | Whether the action succeeded |
task_id | string | Linked task ID |
manage_spatial_spec
Manage Spatial Spec-Driven Development (Spatial SDD) physical baseline contracts. Actions: set (registers a baseline spec), verify (evaluates live entities against constraints without mutating), list (returns all registered specs). verify is read-only. set persists constraints. Returns {ok, action, spec_id, passed:boolean, violations[]}. Use manage_spatial_spec instead of update_entity when validating physical contract baselines rather than mutating live entity state.
| Parameter | Type | Description |
|---|---|---|
action | string | Action to perform (default: list) |
bounds | object | Spatial bounding box limits |
constraints | array | List of spatial constraints |
description | string | Specification description |
name | string | Name of the spatial specification |
project | string | Optional project identifier |
sdd_requirement_id | string | Linked state-memory SDD requirement node ID |
tolerance | number | Verification tolerance percentage (default: 0.05) |
create_evidence_pack
Package entity positions, observation reconciliations, and snapshot states into an immutable, SHA-256 hashed cryptographic evidence pack for compliance and state-memory task verification. Does not change entities; hashes current proof. Returns {ok, pack_id, hash, payload}. Use create_evidence_pack instead of manage_snapshot when creating immutable cryptographic verification packages rather than database checkpoints.
| Parameter | Type | Description |
|---|---|---|
after_snapshot_id | string | Snapshot ID after action execution |
before_snapshot_id | string | Snapshot ID before action execution |
entity_ids | array | Entity IDs included in evidence pack |
linked_state_memory_nodes | object | Linked state-memory node IDs |
observation_ids | array | Observation IDs included in evidence pack |
project | string | Optional project identifier |
task_id | string | Primary state-memory task ID linked to this proof |
use_spatial_blackboard
Publish or read multi-agent spatial coordination topics, collision alerts, and mutex region leases. Actions: get, set, delete, lease, list, post, read, claim, release. set writes payload (coordinates allowed for collision alerts) with optional ttl_seconds. lease acquire fails if the resource is held. delete is destructive. Returns {ok, action, items[]|entry|lease}. Use use_spatial_blackboard instead of set_relation when coordinating transient multi-agent collision alerts and mutex region leases.
| Parameter | Type | Description |
|---|---|---|
action | string | Action to perform (default: get) |
agent_id | string | Agent identifier (alias for sender) |
duration_seconds | number | Lease duration in seconds (default: 60) |
id | string | Blackboard entry identifier for get or delete |
include_expired | boolean | Whether to include expired entries |
intention_id | string | Cross-server intention identifier from agent-reasoning-mcp to bind execution directives |
limit | number | Maximum number of items or topics to return |
mode | string | Lease action mode: acquire or release (default: acquire) |
payload | object | Payload object (supports coordinates for collision alerts) |
project | string | Optional project identifier |
resource_id | string | Resource or entity ID to lease or release |
sender | string | Agent identifier posting or claiming |
topic | string | Blackboard topic name |
topic_prefix | string | Prefix filter for listing topics |
ttl_seconds | number | Post TTL expiration in seconds |
manage_snapshot
Checkpoint, diff, undo, or time-travel the spatial world database. Actions: save, restore, diff, list, undo, history, time_travel. restore (overwrites live state) and undo (reverts last matching mutation) are destructive and not always reversible except by saving first. diff, list, history, and time_travel are read-only. Returns {ok, action, snapshots[]|diff|state}. Use manage_snapshot instead of update_entity when rolling back, diffing, or time-traveling database state rather than editing single entities.
| Parameter | Type | Description |
|---|---|---|
action | string | Action to perform (default: list) |
description | string | Optional snapshot description |
entity_id | string | Target entity ID for undo or history lookup |
name | string | Snapshot name for save/restore |
project | string | Optional project identifier |
snapshot_a | string | First snapshot name for diff |
snapshot_b | string | Second snapshot name for diff |
timestamp | string | ISO timestamp for time-travel reconstruction |
type | string | Mutation type to undo (default: any) |
generate_game_inputs
Translate 3D navigation paths into Playwright commands (WASD/click-to-move) or project/unproject 3D coordinates and screen pixels. Actions: generate_inputs, project_screen, unproject_ray. Read-only: generates Playwright inputs, does not press keys. Returns {ok, action, inputs[]|screen_coords|ray}. Use generate_game_inputs instead of simulate_movement when translating 3D trajectories into Playwright browser automation commands.
| Parameter | Type | Description |
|---|---|---|
action | string | Action to perform (default: generate_inputs) |
camera | object | Camera state for projection / click-to-move |
control_profile | object | Game control key bindings and physical parameters |
current_orientation | object | Starting orientation angles |
current_position | object | Starting 3D coordinates (auto-resolved from entity_id if omitted) |
direction | string | Projection direction for projection mode |
entity_id | string | Player or target entity ID |
ground_elevation | number | Ground plane elevation Y for raycast intercept (default: 0) |
output_format | string | Output format (default: playwright_mcp) |
project | string | Optional project identifier |
screen_x | number | Screen pixel X coordinate for screen_to_world unprojection |
screen_y | number | Screen pixel Y coordinate for screen_to_world unprojection |
target_entity_id | string | Target destination entity ID |
target_position | object | Destination 3D coordinates |
viewport | object | Browser viewport dimensions |
waypoints | array | Optional intermediate navigation waypoints |
world_position | object | 3D world position for projection or starting point |
wait_for_spatial_state
Poll and wait until an entity reaches a specific spatial condition (exists, active, confidence threshold, or enters region). Read-only polling tool. Default timeout: 10000ms, poll_interval: 500ms. On timeout returns {ok: false, timeout: true}. Returns {ok, condition_met:boolean, entity}. Use wait_for_spatial_state instead of query_entities when polling asynchronously for an entity state transition or region entry.
| Parameter | Type | Description |
|---|---|---|
condition * | string | Condition to wait for |
entity_id * | string | Entity ID to monitor |
poll_interval_ms | number | Polling interval in milliseconds (default: 250) |
project | string | Optional project identifier |
region_id | string | Target region ID for in_region condition |
threshold | number | Confidence threshold (default: 0.8) |
timeout_ms | number | Timeout in milliseconds (default: 10000) |