intercept_network
Intercept and modify network requests during browser automation to block unwanted traffic or alter responses for testing and anti-detection purposes.
Instructions
Intercept and block/modify network requests
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": {
"urlPattern": "<urlPattern>",
"action": "<action>"
},
"name": "intercept_network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Page ID (uses active page if not specified) | |
| urlPattern | Yes | URL pattern to intercept (glob) | |
| action | Yes | Action to take | |
| modifyResponse | No | Response modifications (for action="modify") |