browser_network_state_set
Set the browser network to offline to simulate network failures and test app resilience, or to online to restore connectivity.
Instructions
Sets the browser network state to online or offline. When offline, all network requests will fail.
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": {
"state": "<state>"
},
"name": "browser_network_state_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Set to "offline" to simulate offline mode, "online" to restore network connectivity |