list_devices
List network devices, groups, or both from Nornir inventory with optional filters for name, hostname, group, and platform to retrieve detailed device attributes.
Instructions
List network devices and inventory information.
Consolidated tool that provides flexible access to inventory data including devices, groups, or both. Use 'details=true' for full device attributes.
Args: query_type: Type of inventory data to return ("devices", "groups", "all") details: Whether to return full inventory attributes (for devices query) filter_name: Filter by device name in inventory filter_hostname: Filter by specific hostname or IP filter_group: Filter by group membership filter_platform: Filter by platform (e.g., 'cisco_ios', 'arista_eos')
Returns: Dictionary containing inventory data based on query_type
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| details | No | Whether to return full inventory attributes (for devices query) | |
| query_type | No | Type of inventory data to return ('devices', 'groups', 'all') | all |
| filter_name | No | Filter by device name in inventory | |
| filter_group | No | Filter by group membership | |
| filter_hostname | No | Filter by specific hostname or IP | |
| filter_platform | No | Filter by platform (e.g., 'cisco_ios', 'arista_eos') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||