mock_route
Intercept and mock network requests matching a specified URL pattern to control responses during testing.
Instructions
Mock network requests matching url_pattern
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_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url_pattern | Yes | ||
| status | No | ||
| body | No | {} | |
| content_type | No | application/json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |