Mitm Set Map Local
mitm_set_map_localRewrite matching URL requests to serve a mocked response from an allowlisted local file or directory. Use a regex pattern to route traffic to local content.
Instructions
Serve a mocked response for requests matching a URL regex from a local file or directory. The path MUST be inside allowed_mock_roots (R3).
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": {
"params": "<params>"
},
"name": "mitm_set_map_local"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| rule_id | No | ||
| rendered_spec | No | ||
| canonical_path | No | Canonical, allowlist-validated path that was registered. |