redis_kill_client
Disconnect a Redis client by ID or address, capturing its state before the irreversible kill; dry-run preview available.
Instructions
[WRITE][risk=medium] Disconnect one redis client by id or addr. IRREVERSIBLE.
Captures the client's CLIENT LIST row as priorState (who/where/last command) before the kill — the connection cannot be restored, so no undo is recorded; most clients transparently reconnect. Pass dry_run=True to preview.
Refuses this tool's own connection, by id or by addr — including under dry_run, which must report a refusal rather than preview a call that will be refused.
Args: client_id: Client id from redis_clients (preferred). addr: Or the client's 'ip:port' address. dry_run: If True, preview without disconnecting. target: redis target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addr | No | ||
| target | No | ||
| dry_run | No | ||
| client_id | No |