Mock network requests
browser_routeStub responses for URLs matching a pattern and restart mocking by re-adding the route.
Instructions
Stub responses for URLs matching a pattern. Restart mocking by re-adding the route.
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": {
"pattern": "<pattern>"
},
"name": "browser_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body | |
| status | No | HTTP status to return (default 200) | |
| headers | No | Extra headers as "Name: Value" | |
| pattern | Yes | URL pattern with * wildcards, e.g. **/api/users | |
| contentType | No | Content-Type header |