Network Intercept
network_intercept:
Instructions
Add or remove network intercept rules. Block requests (ads, trackers), mock API responses, or log specific traffic. Use action='remove' with ruleId to remove an existing rule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID. | |
| action | Yes | Intercept action. | |
| ruleId | Yes | Unique rule ID. Use for adding and removing rules. | |
| urlPattern | No | URL glob pattern to match (e.g. '**/analytics/**'). Required for block/log/mock. | |
| mockStatus | No | HTTP status for mock responses. | |
| mockBody | No | Response body for mock responses. | |
| mockContentType | No | Content-type for mock responses. Default: application/json. |