Hosts
hostsManage reachable inventory entries: list, add, test, set up, rename, or remove machines, pin SSH keys, and verify read-only and change accounts before Ansible runs.
Instructions
List, add, test, set up, rename or remove the hosts this server may reach. Adding pins the host key, asks the user in a dialog on the Mac (never ask for it in the chat), then tests both accounts: look (only reads) and change (sudo or admin). On Linux, adding also gives the look account docker ps/logs/inspect and journalctl through sudo, nothing else; setup does that for a host added earlier. Rename and remove ask nothing; they grant no access.
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": {
"action": "<action>"
},
"name": "hosts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jump | No | add: name of a host added with kind="jump" (a bastion, or the server a reverse tunnel ends on) to reach this host through | |
| kind | No | add: linux (default), macos, synology, routeros, openwrt, windows, or jump (a bastion that only carries connections) | |
| name | No | the host's name in the inventory (letters, digits, . _ -), e.g. web-1 | |
| port | No | add: SSH port. Default 22 | |
| action | Yes | list (default), add, test, setup, rename or remove | |
| groups | No | add: extra inventory groups, e.g. ["home"]. The kind is always a group too | |
| address | No | add: IP address or DNS name; 127.0.0.1 for a host behind a reverse tunnel on its jump | |
| key_file | No | add: private key path for both accounts, e.g. ~/.ssh/ops. Default: your SSH agent | |
| look_key | No | add: key for the look account, if not key_file | |
| new_name | No | rename: the host's new name | |
| look_user | No | add: the account that only reads (no sudo; RouterOS: a read-only group) | |
| change_key | No | add: key for the change account, if not key_file | |
| change_user | No | add: the account that changes things (passwordless sudo; Windows: an administrator) | |
| create_look | No | add, Linux: log in as the change account first and create the look account if missing (no password, no sudo, no groups, the change account's keys). Default false |