hostname
Retrieve the system hostname as JSON to identify the current 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'.
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": "hostname"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write hostname without a JSON envelope. |