set_network_profile
Make the phone's network behave like a named profile: online, offline, 2g, 3g, slow-4g, spotty or low-end-4g. The app's fetch and XHR calls wait and fail as the profile says (offline rejects every call). The numbers are simulation settings, not measurements of a real network. Mock rules from set_network_mocks still win. Fails with unknown_profile for a name that does not exist. Logged in device_log as simulated.
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>",
"profile": "<profile>"
},
"name": "set_network_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | Yes | online, offline, 2g, 3g, slow-4g, spotty or low-end-4g | |
| session | Yes | Session from open_app |