set_config
Set or create firewall configuration at a specific XPath location, staging changes in the candidate config for later commit to take effect.
Instructions
[MODIFIES CONFIG] Sets or creates configuration at a specific XPath location on the firewall. Changes are staged in the candidate config and require a separate 'commit' to take effect on the running firewall.
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": {
"xpath": "<xpath>",
"element": "<element>"
},
"name": "set_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xpath | Yes | XPath to the configuration location (e.g., '/config/devices/entry[@name="localhost.localdomain"]/vsys/entry[@name="vsys1"]/address') | |
| element | Yes | XML element to set at the xpath location (e.g., '<entry name="test-addr"><ip-netmask>10.0.0.1/32</ip-netmask></entry>') | |
| firewall | No | Target firewall name (from firewalls.json). Required when multiple firewalls are configured; optional otherwise. |