device_network_set
Toggle host-level network state (online / offline / airplane) so native apps see real SocketException / NSURLErrorNotConnectedToInternet — see docs/tools/device-network.md
How to use it
device_network_set is exposed by the Opensafari MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the device_network_set tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Opensafari
npm install -g opensafari-mcpOther tools in Opensafari (36)
Bring app to foreground (launches if not running)
Report the current mobile context and optionally guard on an expected bundle
Launch app by bundle ID with optional args and env vars
List running foreground apps with PIDs
Reviewer-equivalent Universal Link tap: launches Notes.app, paste-injects the URL, waits for iOS Data Detector to produce an AXLink, and taps it — see docs/recipes/universal-link-channels.md
Reset app state: terminate, clear permissions, uninstall
Terminate a running app by bundle ID
Switch light/dark mode via simctl ui
List saved auth profiles
Restore saved auth state into a simulator
Capture cookies + localStorage from current session
Run JS across all simulators in parallel
Open same URL on all devices simultaneously
Capture same URL across all active devices
Tap element by CSS selector or coordinates
Get/set/clear real Safari cookies via Network domain
Side-by-side visual comparison across devices
Boot a specific device (iPhone SE, 16, iPad, etc.)
List available simulator device types
Read the current simulated network state set by devicenetworkset
Toggle portrait/landscape
Shutdown simulator
Element CSS, accessibility, and layout inspection
Execute JavaScript in page context via Runtime.evaluate
Open URL in real Safari
Detect inputs triggering iOS auto-zoom
Compare light vs dark mode rendering
Run all QA checks and generate report
Detect fixed elements hidden by real keyboard
Check content behind notch/home indicator
Find elements below 44×44px minimum
CSS selector queries with element details
Extract visible text content
Capture real Safari screen via WebKit Protocol
Scroll page in any direction
Type text into form elements