list-hosts
List all hosts in your Ansible inventory, with options to filter by group and output in list, JSON, or YAML format.
Instructions
List all hosts in inventory
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list-hosts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inventory | No | Path to inventory file (default: inventory/hosts.yml) | |
| group | No | Filter by specific group | |
| format | No | Output format | list |