Edit a role
edit_roleUse this when the user wants to rename a role or change its color, display or mention setting. Do not use for its permissions; use set_role_permissions. Adds the change to the pending card for this server; nothing changes on Discord until apply_card.
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": {
"guild_id": "<guild_id>",
"role": "<role>"
},
"name": "edit_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | The role name. | |
| color | No | #RRGGBB | |
| hoist | No | Display separately. | |
| guild_id | Yes | Discord server ID, as returned by list_my_servers. | |
| new_name | No | New name. | |
| mentionable | No | Anyone can mention it. |