Soroush Plus (own account): admin rights
soroushplus_web_set_adminPromotes or demotes a chat member to admin through the signed-in Soroush Plus web account, requiring explicit confirmation before applying the account change.
Instructions
Promote one member to admin (isAdmin: true) or demote them. Changes the user's account: needs confirm: true after the user approves, NABU_WEB_ALLOW_ACCOUNT_CHANGES=1 and (for an existing chat) the chat in SOROUSHPLUS_WEB_ALLOWED_CHATS.
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": {
"chatId": "<chatId>",
"userId": "<userId>",
"confirm": "<confirm>"
},
"name": "soroushplus_web_set_admin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | "me" for Saved Messages, @username, or a numeric chatId from messaging_web_list_chats (channels and groups are negative) | |
| userId | Yes | userId from get_members or get_contacts. | |
| confirm | Yes | Must be true, and only after the user has explicitly approved this exact action. | |
| isAdmin | No |