cfg_edit
Validate an edited OpenSIPS configuration and return a unified diff for review, without writing changes to disk.
Instructions
Validate an edited OpenSIPS config and return a unified diff.
Does not write anything to disk — the caller chooses to persist after reviewing the diff.
Parameters
existing_cfg: The current on-disk configuration text. change_description: Short natural-language description of the intended change (e.g. "Increase children to 16 and enable TLS"). new_cfg: The LLM's rewritten configuration text.
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": {
"existing_cfg": "<existing_cfg>",
"change_description": "<change_description>",
"new_cfg": "<new_cfg>"
},
"name": "cfg_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| existing_cfg | Yes | ||
| change_description | Yes | ||
| new_cfg | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||