Kick Out MQTT Client
emqx_kick_clientDisconnect an MQTT client and clear its session, forcing a fresh connection. Use to recover a client without banning, though queued messages are lost.
Instructions
[DESTRUCTIVE] Disconnect an MQTT client and clear its session.
Queued and in-flight messages for that session are lost. Devices with auto-reconnect usually return within seconds, so this forces a fresh connection rather than blocking one — use emqx_ban to keep a client out.
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": {
"clientid": "<clientid>"
},
"name": "emqx_kick_client"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clientid | Yes | Client id to disconnect. Call emqx_list_clients first to get an exact id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kicked | Yes | True when the broker accepted the disconnect. | |
| clientid | Yes |