Update a user
cometchat_update_userUpdates a user's name, avatar or role; only the fields passed change. To deactivate a user use cometchat_set_users_active.
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>",
"uid": "<uid>"
},
"name": "cometchat_update_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | User ID | |
| name | No | New name | |
| role | No | New role | |
| app_id | Yes | The CometChat App ID (from cometchat_list_apps). | |
| avatar | No | New avatar URL | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | ||
| app_id | Yes | App ID |