intercept_requests
Intercept network requests to block, modify responses with custom status, body, or headers, or clear all intercepts in the browser using URL patterns and HTTP methods.
Instructions
Intercept and modify or block network requests. Use block to abort requests, modify to return custom responses, or clear to remove all intercepts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Block requests, modify responses, allow all, or clear all intercepts | |
| urlPattern | No | URL pattern to match (substring) | |
| method | No | HTTP method to match | |
| statusCode | No | Override response status code (for modify) | |
| responseBody | No | Override response body (for modify) | |
| responseHeaders | No | Override response headers | |
| tabId | No | Target tab ID (defaults to currently active tab) | |
| apiKey | No | API key for authentication if enabled |