GhostKey Session Revoke
ghostkey_session_revokeImmediately revoke a GhostKey browser delegation session and cancel its queued work. The session's agent token stops working at once and no further actions can be relayed into the user's browser under it. Use it when a delegated task is finished, the permitted scope changes, or the session may be compromised. Revocation cannot be undone; a new session must be created (and paid for) instead.
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": {
"session_id": "<session_id>",
"agent_token": "<agent_token>"
},
"name": "ghostkey_session_revoke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session identifier (UUID) returned by ghostkey_session_create. | |
| agent_token | Yes | Agent token issued with the session at creation; authorizes revoking this session. |