snapshot_capture
Capture a structured state snapshot of a running OpenSIPS instance as a JSON file. Specify output directory, optional label, and extra statistics groups for diagnostics or baselines.
Instructions
Capture a structured state snapshot of the running OpenSIPS.
Parameters
out_dir:
Directory to save the JSON snapshot into. Must live in an
allowlisted dir (/tmp, /var/tmp, $HOME, or
OPENSIPS_MCP_OUT_DIR_ROOT).
label:
Optional human-readable tag (before-deploy, baseline,
post-incident). Becomes part of the filename.
extra_stat_groups:
Additional statistics group prefixes to include beyond the
defaults. E.g. ["rtpengine:", "stir_shaken:"].
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": {
"out_dir": "<out_dir>"
},
"name": "snapshot_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out_dir | Yes | ||
| label | No | ||
| extra_stat_groups | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||