get_config_xpath
Retrieve any portion of the Palo Alto Networks configuration by specifying its XPath, enabling read-only inspection of specific config elements.
Instructions
[READ-ONLY] Retrieves configuration at a specific XPath location. This is a flexible read tool for querying any part of the PanOS configuration tree.
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>"
},
"name": "get_config_xpath"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xpath | Yes | XPath to the configuration element (e.g., '/config/devices/entry[@name="localhost.localdomain"]/network') | |
| firewall | No | Target firewall name (from firewalls.json). Required when multiple firewalls are configured; optional otherwise. |