update_host
Update host metadata in the sudo-proxy registry, modifying only the provided description and OS fields while retaining existing values. Adds new hosts automatically.
Instructions
Record or update metadata for a host in the sudo-proxy registry (~/.config/sudo-proxy/hosts.json), which is surfaced in this server's instructions and in status output. Partial update: only the description and/or os fields you provide are changed; omitted fields keep their current values. A host not yet in the registry is added automatically. Returns 'Updated host '; errors only if the host name contains characters outside [A-Za-z0-9._@:-].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | Operating system info (e.g. "Ubuntu 24.04") | |
| host | Yes | Hostname to update | |
| description | No | Human-readable description of the host (e.g. "CI server") |