groups
Retrieve group names and IDs for a user or current process to verify group membership for access control decisions. Outputs a JSON list of groups.
Instructions
Return group names and IDs for a specified user or the current process. Read-only, no side effects. Returns JSON with group list. Use to verify group membership for access control decisions. Not for full user identity inspection — use 'id' for UID/GID plus all groups. Not for current username — use 'whoami'. See also 'id', 'whoami'.
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": "groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write group names/ids without a JSON envelope. | |
| user | No | User name label for the result. Current user by default. |