create_privilege_token
Generate a privilege key to grant access to a server group or channel group, optionally specifying a channel for channel group tokens and adding a description.
Instructions
Create a new privilege key/token for server or channel group access
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": {
"token_type": "<token_type>",
"group_id": "<group_id>"
},
"name": "create_privilege_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_type | Yes | Token type (0=server group, 1=channel group) | |
| group_id | Yes | Server group ID (for token_type=0) or channel group ID (for token_type=1) | |
| channel_id | No | Channel ID (required for channel group tokens when token_type=1) | |
| description | No | Optional description for the token | |
| custom_set | No | Optional custom client properties set (format: ident=value|ident=value) |