group_leave
Leave a group and stop syncing its messages to your inbox.
Name the group with ONE of:
thread_id: the DialogBrain conversation id of the group chat (primary way)
group_id: the discovered-group id from group.list Platform chat ids (Telegram -100...) are NOT accepted. If both are given they must be the same group.
The leave always runs as one concrete account: account_id if given, else the account the conversation / discovered group belongs to. There is no fallback to another account.
What this does:
Leaves the group on Telegram (or other channel)
Stops syncing new messages
Disables any AI auto-reply drafts for this group
Keeps a discovered group in the discovery list (not deleted)
Returns: success, thread_id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "group_leave"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_id | No | The discovered-group id from group.list (lifecycle='monitored'). NOT a platform chat id and NOT a thread id. | |
| thread_id | No | The DialogBrain conversation (thread) id of the group chat. Primary way. | |
| account_id | No | Which of the workspace's accounts on this channel acts (from channels.list). OMIT to use the account the conversation / discovered group belongs to. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |