Create mock from request
create_mock_from_requestTurn any captured proxy request into a reusable mock rule by mirroring its recorded response. Supply the request id, then override name, URL pattern, or dynamic templating before saving.
Instructions
Convenience: fetch a captured request by id and scaffold a mock rule from its recorded response. Optional overrides let the caller tweak fields before persisting.
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": {
"request_id": "<request_id>"
},
"name": "create_mock_from_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Override the auto-generated rule name. | |
| dynamic | No | Mark the rule as dynamic so the body supports templating. | |
| request_id | Yes | Traffic entry id to mirror. | |
| url_pattern | No | Override the URL pattern. Defaults to the recorded path. |