setChatMemberTag
Assign a tag to a regular group or supergroup member; requires bot admin with can_manage_tags. Use to label members and return True on success.
Instructions
Use this method to set a tag for a regular member in a group or a supergroup. The bot must be an administrator in the chat for this to work and must have the “can_manage_tags” administrator right. Returns True on success.
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": {
"chat_id": "<chat_id>",
"user_id": "<user_id>",
"tag": "<tag>"
},
"name": "setChatMemberTag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | New tag for the member; 0-16 characters, emoji are not allowed | |
| chat_id | Yes | Unique identifier for the target chat or username of the target supergroup in the format `@username` | |
| user_id | Yes | Unique identifier of the target user |