browser_network_intercept
Intercept network requests to block or mock API calls and resources by URL pattern. Control traffic with block, mock, or passthrough actions.
Instructions
Intercept network requests — block, mock, or passthrough.
Args: page_id: Target page ID. url_pattern: Glob pattern (e.g. '/api/', '**/*.png'). action: 'block', 'mock', or 'continue'. mock_body: Response body for 'mock' action. mock_status: HTTP status for 'mock' action. mock_content_type: Content-Type for 'mock' action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| url_pattern | Yes | ||
| action | No | block | |
| mock_body | No | ||
| mock_status | No | ||
| mock_content_type | No | application/json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||