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.
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": {
"page_id": "<page_id>",
"url_pattern": "<url_pattern>"
},
"name": "browser_network_intercept"
}
}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 | |||