browser_intercept_request
Intercept network requests by URL pattern to add delays, force failures, or return mock responses.
Instructions
Intercept matching network requests to inject delays, force failures, or return mock responses. Uses CDP Fetch domain for precise request-level control.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | "delay" = add latency, "fail" = reject the request, "mock" = inject custom mock response | |
| delayMs | No | Delay in ms (required for action="delay") | |
| pattern | Yes | URL glob pattern to match (e.g., "*api*", "*graphql*") | |
| mockResponse | No | Mock response configuration (required for action="mock") |