Leave a group
leave_groupRemove a WhatsApp account from a group. Once removed, the account can only rejoin if added or invited again.
Instructions
Make the account leave a group. To come back it has to be added or invited again.
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": {
"accountId": "<accountId>",
"groupId": "<groupId>",
"confirm": "<confirm>"
},
"name": "leave_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true. The account leaves the group. Only set it after the user asked for this or agreed to it. | |
| groupId | Yes | The group id (`...@g.us`), from list_groups. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). |