leave_chat
Exit a Telegram group or channel by providing its chat ID. Requires confirmation to prevent accidental removal.
Instructions
Leave a group or channel (DESTRUCTIVE: requires confirm=true)
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": {
"chat_id": "<chat_id>"
},
"name": "leave_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | ||
| confirm | No | Must be true to execute this destructive action. Without it, returns a warning. |