set_network_state
Controls device network connectivity by enabling or disabling Wi-Fi, mobile data, and airplane mode, and by throttling emulator latency and speed on Android.
Instructions
Control device network connectivity: Wi-Fi, mobile data, airplane mode, and emulator throttling. Android only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_network_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wifi | No | Enable or disable Wi-Fi | |
| delay | No | Simulate network latency (Android emulator only). 'none' removes the delay. | |
| speed | No | Throttle network speed (Android emulator only). 'full' removes the throttle. | |
| observe | No | Capture screenshot after action. Default: none | |
| platform | No | Target platform. Inferred if omitted. | |
| device_id | No | Device ID. Omit for the connected device. | |
| mobile_data | No | Enable or disable mobile data (Android only) | |
| airplane_mode | No | Enable or disable airplane mode |