simulate_network_drop
Simulate mid-flight connection drops to test app resilience. Aborts requests matching a pattern after a delay, revealing fallback behavior.
Instructions
Aborts requests matching a pattern after a delay, simulating a mid-flight connection drop. Use to answer: what happens if the network drops after the order request is sent but before the response arrives?
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>"
},
"name": "simulate_network_drop"
}
}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) | |
| drop_after_ms | No | Milliseconds to wait before aborting the request, simulating mid-flight drop (default: 500) | |
| fallback_selector | No | CSS selector for the fallback UI that should appear (e.g., '.timeout-error') | |
| intercept_pattern | Yes | Glob pattern for requests to drop (e.g., '**/api/order**') |