Mock JSON Response
network_mock_jsonMocks matching network requests with a custom JSON response for the active page, enabling controlled API behavior during browser testing.
Instructions
Fulfill matching requests with a JSON response for the active page.
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>",
"body": "<body>"
},
"name": "network_mock_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| pageId | No | Page id. Defaults to the active page. | |
| status | No | ||
| urlPattern | Yes |