view_config_node_values
Retrieve configuration values from Palo Alto firewalls using XPath queries to inspect device settings and parameters.
Instructions
View configuration node values for XPath on the Palo Alto firewall
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xpath | Yes | XPath to the configuration node |
Implementation Reference
- src/index.ts:247-260 (handler)Handler for the 'view_config_node_values' tool. Extracts the 'xpath' from arguments, performs a GET request to the Palo Alto API endpoint '/config/xpath' with the xpath parameter, and returns the response data as a text content block.case 'view_config_node_values': { const { xpath } = request.params.arguments as { xpath: string }; const response = await this.axiosInstance.get('/config/xpath', { params: { xpath } }); return { content: [ { type: 'text', text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/index.ts:159-172 (registration)Registration of the 'view_config_node_values' tool in the ListTools response, including name, description, and input schema definition.{ name: 'view_config_node_values', description: 'View configuration node values for XPath on the Palo Alto firewall', inputSchema: { type: 'object', properties: { xpath: { type: 'string', description: 'XPath to the configuration node' } }, required: ['xpath'] } },