snapshot_diff
Compute differences between two OpenSIPS snapshots to surface changes in statistics, processes, dispatcher states, and cluster-node status, omitting unchanged keys for a compact diff.
Instructions
Diff two snapshots and surface the deltas.
Computes per-stat deltas (after - before), flags processes that appeared or disappeared, dispatcher / load_balancer state changes, and cluster-node status flips. Unchanged keys are omitted by default.
Parameters
before_path:
Path to the baseline snapshot JSON.
after_path:
Path to the comparison snapshot JSON.
show_unchanged:
If True, include keys whose values did not change. Default
False — diff output stays compact.
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": {
"before_path": "<before_path>",
"after_path": "<after_path>"
},
"name": "snapshot_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| before_path | Yes | ||
| after_path | Yes | ||
| show_unchanged | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||