browser_route_mock
Stub or bypass specific API endpoints by returning a canned response for matching URL patterns. Intercept network requests and fulfill them with custom status, body, and content type.
Instructions
Mock matching requests with a canned response (fulfill). Useful for stubbing APIs or bypassing endpoints.
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": {
"urlPattern": "<urlPattern>"
},
"name": "browser_route_mock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body. | |
| status | No | HTTP status, default 200. | |
| urlPattern | Yes | Glob/URL pattern to match. | |
| contentType | No | Content-Type, default text/plain. |