Sign Out Player
horizon_signoutRevokes the current player session, or all of that player's sessions when explicitly requested, for logout and session revocation.
Instructions
Revokes the current player session on the server, or all of that player's sessions when explicitly requested. Use when: the player explicitly chooses logout, or chooses to revoke all sessions on their devices. Not for: only clearing an SDK cache or logging out a developer dashboard account. Use horizon_signin_* for a future login. Side effects: revokes current access and refresh family, or all user sessions if allSessions=true. Clear corresponding local credentials after confirmed success; SDK SignOut alone only clears local state. It does not revoke the anonymous recovery credential. Returns: empty HTTP 204 represented as null. allSessions omitted/false affects only the current session. Errors: 401 when the supplied access token is missing/invalid/expired. An error does not prove remote revocation; require signin if access has expired. Needs HORIZON_API_KEY. Every failure returns an error result (isError) with the HTTP status and body: a 401 that horizon_test_connection also returns means HORIZON_API_KEY is wrong, 429 means the account's per-minute rate limit was reached (wait a minute, then retry).
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": {
"sessionToken": "<sessionToken>"
},
"name": "horizon_signout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allSessions | No | Revoke all sessions for this user only when explicitly requested; omitted/false revokes the current session only | |
| sessionToken | Yes | Player accessToken from signup, signin or refresh-session, passed as sessionToken (max 256 characters) |