Route Add
route_addInstall a browser request interception rule to match URLs, methods, headers, or resource types and apply block, fulfill, continue, modify, tee, or redirect actions.
Instructions
Install rich interception rule. action: block|fulfill|continue|modify|tee|redirect.
MATCH (AND of any provided): url_pattern substring (cheap, default) url_regex re.fullmatch method GET/POST/... resource_type Document/XHR/Fetch/Script/Stylesheet/Image/Font/Media/... header_match {header_lower: regex} — re.search per header status_min/max response-stage filter (forces response-stage interception)
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": {
"tab_id": "<tab_id>",
"action": "<action>"
},
"name": "route_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| times | No | ||
| action | Yes | ||
| method | No | ||
| status | No | ||
| tab_id | Yes | ||
| capture | No | ||
| enabled | No | ||
| headers | No | ||
| new_url | No | ||
| rule_id | No | ||
| body_b64 | No | ||
| delay_ms | No | ||
| priority | No | ||
| url_regex | No | ||
| new_method | No | ||
| status_max | No | ||
| status_min | No | ||
| url_pattern | No | ||
| body_replace | No | ||
| error_reason | No | BlockedByClient | |
| header_match | No | ||
| new_post_data | No | ||
| resource_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||