mock_response
Intercept fetch/XHR requests matching a URL pattern to return a canned response. Use it to test frontend behavior without a real backend until the page reloads.
Instructions
Intercept fetch/XHR requests matching a URL pattern and return a canned response. Useful for testing without a real backend. Injection survives until the page is reloaded.
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": "mock_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body string | {} |
| status | No | ||
| url_pattern | Yes | Substring or regex pattern to match the request URL | |
| content_type | No | application/json |