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.
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. |