id
Retrieve user identity including UID, GID, username, and group memberships as JSON. Useful for access control auditing and comprehensive user inspection.
Instructions
Return user identity information: UID, GID, username, and all group memberships as JSON. Read-only, no side effects. Returns JSON with full user identity. Use for comprehensive user identity inspection and access control auditing. Not for quick username check — use 'whoami'. Not for just group listing — use 'groups'. See also 'whoami', 'groups'.
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": "id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write compact identity text without a JSON envelope. |