edit_role
Update a Discord role's name or color on a server. Optionally include an audit log reason.
Instructions
Edit an existing role's name or color
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_id": "<role_id>"
},
"name": "edit_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | ||
| role_id | Yes | ||
| name | No | New role name (optional) | |
| color | No | New hex color (optional) | |
| reason | No | Audit log reason (optional) |