set_connectivity
Turn Wi-Fi, mobile data or airplane mode on or off for the whole phone, as in quick settings on Android and iOS. Airplane mode turns both radios off; Wi-Fi can come back on during it, and leaving it restores the radios as they were. Every app sees the result: apps you built read it as {{ network.online }} and {{ network.type }}, and their web data does not load while the phone is offline. The open app's screen is drawn again. Logged in device_log as "connectivity".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session": "<session>"
},
"name": "set_connectivity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wifi | No | ||
| session | Yes | Session from open_app | |
| airplane | No | ||
| mobile_data | No |