getSimulatorStatus
Check a live simulator session's health: phase, hardware readiness, attached roles, test videos, and connection staleness to catch silent failures after code changes.
Instructions
Read a live simulator session's current state — phase (active/paused/closed), hardware-ready, attached roles (app + browser), and the testVideos list available to drive setSimVideo (defaults bundled with the platform plus any MP4s uploaded for this project on the simulator page). Also returns a freshness advisory — each role's connectedAt plus the staleness rule — so you can catch the #1 silent failure in the test loop: driving a connection that went STALE after a code change (rebuilt/reinstalled the app → relaunch it so it's the fresh build; pushed a deploy → it severed the sim WebSockets, so re-ensure the browser). Session-level snapshot only. Does NOT report which capability streams are open — it never did: activeStreams/lastEventTimestamp existed but were never populated by anything (zero of 251 production sessions), so they were removed in 0.11.55 rather than left reporting 0 while streams ran. To see whether a subscription is live, read the event log (getEventLog) or your own app's state. USE during testing to confirm the session is healthy, the app role has attached, that a connection isn't stale after a change, or to discover which test videos you can pipe into capture_photo/capture_video. DON'T USE for event traces (use getEventLog).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes |