Add group members
cometchat_add_group_membersAdds users to a group as participants, moderators or admins (up to 100 per list); listing a current member under another role changes their role. Failures aren't reported per user: check with cometchat_list_group_members.
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": {
"app_id": "<app_id>",
"guid": "<guid>"
},
"name": "cometchat_add_group_members"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guid | Yes | Group ID | |
| admins | No | UIDs to add as admins (full control of the group) | |
| app_id | Yes | The CometChat App ID (from cometchat_list_apps). | |
| confirm | No | Set true only after the user has explicitly agreed to this change. Without it, nothing happens and you get a summary to show them. | |
| moderators | No | UIDs to add as moderators (can remove members and messages) | |
| participants | No | UIDs to add as ordinary members |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guid | Yes | Group ID | |
| added | Yes | Users sent to CometChat | |
| app_id | Yes | App ID |