proxy_mock_response
Create a mock rule to return a custom HTTP response for requests that match optional criteria like method, hostname, or URL pattern.
Instructions
Return a mock response for matched requests. Creates a mock rule.
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": {
"status": "<status>"
},
"name": "proxy_mock_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body | |
| method | No | HTTP method to match (optional) | |
| status | Yes | Response status code | |
| hostname | No | Hostname to match (optional) | |
| priority | No | Rule priority (default: 10, high priority) | |
| url_pattern | No | URL regex pattern to match (optional) | |
| content_type | No | Content-Type header | application/json |