wait_for_spatial_state
Wait for a spatial entity to exist, become active, exceed a confidence threshold, or enter a region by polling a world model, returning state or timeout.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Optional project identifier | |
| condition | Yes | Condition to wait for | |
| entity_id | Yes | Entity ID to monitor | |
| region_id | No | Target region ID for in_region condition | |
| threshold | No | Confidence threshold (default: 0.8) | |
| timeout_ms | No | Timeout in milliseconds (default: 10000) | |
| poll_interval_ms | No | Polling interval in milliseconds (default: 250) |