hostname
Return the system hostname as JSON to identify the machine in network contexts.
Instructions
Return the system hostname as JSON. Read-only, no side effects. Returns JSON with the hostname string. Use to identify the machine in network contexts. Not for numeric host ID — use 'hostid'. Not for full system info — use 'uname'. See also 'hostid', 'uname'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write hostname without a JSON envelope. |