keycloak_get_client_sessions
Get active user sessions for a Keycloak client using its UUID. Specify realm, pagination offset, and max results to audit or monitor client activity.
Instructions
List the active user sessions for one client.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"clientUuid": "<clientUuid>"
},
"name": "keycloak_get_client_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Maximum number of results to return (1-500). Defaults to 50. | |
| first | No | Pagination offset — index of the first result to return (0-based). | |
| realm | No | Realm to operate on. Defaults to the server's configured realm (KEYCLOAK_REALM). | |
| clientUuid | Yes | Client UUID (the `id` field). |