discord_assign_role
Assigns a Discord role to a server member using user and role IDs, with an optional guild ID or the active server for role management.
Instructions
Assign a role to a server member.
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": {
"user_id": "<user_id>",
"role_id": "<role_id>"
},
"name": "discord_assign_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_id | Yes | The ID of the role to assign. | |
| user_id | Yes | The ID of the user. | |
| guild_id | No | Server ID (defaults to active server). |