set_behavior
Change a mock's behaviour: default status, latency, jitter, error rate, persistent writes, and per route status, latency, hand-written bodies, rules. Merge semantics: missing keys are kept, null clears.
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": {
"slug": "<slug>",
"patch": "<patch>"
},
"name": "set_behavior"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Subdomain of the mock, e.g. "brisk-otter" | |
| patch | Yes | Same fields as PATCH /mocks/:slug/behavior: a missing key is kept, null clears | |
| ownerToken | No | Owner token received at creation (not needed when the account is connected with an API token) |