trigger_system_network_error
Simulate system-level network errors like unreachable host or access denied by aborting matching requests, then verify your app's fallback behavior and recovery.
Instructions
Aborts requests matching a URL pattern with a system-level network error code, simulating OS-level failures like unreachable hosts or access denied. Use to answer: does the app recover when the DNS resolution fails or the OS rejects a connection?
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": {
"url": "<url>",
"intercept_pattern": "<intercept_pattern>",
"error_code": "<error_code>"
},
"name": "trigger_system_network_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to test | |
| wait_ms | No | Milliseconds to wait after navigation before checking fallback (default: 2000) | |
| viewport | No | Viewport size (default: 1280×720) | |
| error_code | Yes | System network error code: addressunreachable (DNS/routing failure), connectionaborted (mid-flight drop), accessdenied (firewall/OS block), aborted (generic abort) | |
| fallback_selector | No | CSS selector for the fallback UI that should appear (e.g., '.network-error') | |
| intercept_pattern | Yes | Glob pattern for requests to abort (e.g., '**/api/payment**') |