whoami
Return the effective user identity (username, UID, GID) as JSON to verify permissions before sensitive operations.
Instructions
Return the effective user identity (username, UID, GID) of the current process as JSON. Read-only, no side effects. Use to determine which user the agent is running as before performing permission-sensitive operations. Not for the original login identity — use 'logname' to bypass su/sudo. Not for full identity details — use 'id' for all groups. See also 'id', 'logname'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write the user name without a JSON envelope. |