Xr mode test

From facebook/immersive-web-sdk · View interactive version

Xr mode test is an AI agent skill from the GitHub repository facebook/immersive-web-sdk. Test XR session lifecycle and mode transitions. Use when verifying XR enter/exit behavior, testing mode-dependent features, or debugging session state issues.

How to use this skill

Skill file

XR Mode Toggle Test

Test the XR session lifecycle by entering and exiting XR mode, verifying state transitions at each step.

Test Flow

1. Check Initial State

Use mcp__iwsdk-runtime__xr_get_session_status to confirm starting state:

2. Enter XR Mode

Use mcp__iwsdk-runtime__xr_accept_session to enter XR.

3. Verify XR Session Active

Use mcp__iwsdk-runtime__xr_get_session_status to confirm:

4. Optional: Verify Input Devices

Use mcp__iwsdk-runtime__xr_get_device_state to check:

5. Exit XR Mode

Use mcp__iwsdk-runtime__xr_end_session to leave XR.

6. Verify Session Ended

Use mcp__iwsdk-runtime__xr_get_session_status to confirm:

7. Check Application State

Use mcp__iwsdk-runtime__browser_get_console_logs to verify:

Arguments

If $ARGUMENTS is provided, use it as a log pattern filter for step 7.

Example: /xr-mode-test "MODE|RESET" will filter logs for "MODE" or "RESET" patterns.

Expected Results

Report:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.