request_intercept
Log, block, or modify network requests per tab. Apply presets to optimize bandwidth by blocking images, media, fonts, or stylesheets.
Instructions
Intercept network requests (log, block, modify). preset="optimize-bandwidth" blocks Image/Media/Font/Stylesheet; preset="optimize-bandwidth-light" blocks Image/Media/Font. User block/allow/modify rules run after presets; explicit allow rules win. OPENCHROME_OPTIMIZE_BANDWIDTH= can auto-apply to new targets.
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": {
"tabId": "<tabId>",
"action": "<action>"
},
"name": "request_intercept"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | No | Rule definition (addRule) | |
| limit | No | Max logs to return (getLogs) | |
| tabId | Yes | Tab ID | |
| action | Yes | Action to perform | |
| dryRun | No | Preview enable/addRule rule installation without enabling interception, installing listeners, or mutating rules. | |
| preset | No | Bandwidth preset: "optimize-bandwidth" blocks Image/Media/Font/Stylesheet; "optimize-bandwidth-light" blocks Image/Media/Font only. | |
| ruleId | No | Rule ID (removeRule) |