intercept_request
Intercept network requests by pattern to log, modify headers/body, or mock responses.
Instructions
Intercept network requests matching a pattern.
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": {
"url_pattern": "<url_pattern>"
},
"name": "intercept_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | log | |
| modify_body | No | ||
| url_pattern | Yes | ||
| mock_response | No | ||
| modify_headers | No |