edit_role
Edit an existing role’s name, color, hoist, or mentionable status. This is a DESTRUCTIVE action that follows the requester action tier and approval mode. Use only when explicitly asked to edit a role. At least one of name, color, hoist, or mentionable must be provided.
Contract
Section titled “Contract”Effect: destructive. Evidence role: discovery_only.
Edit an existing role in the guild. Destructive — follows the requester action tier and approval mode.
Parameters
Section titled “Parameters”This is the current provider-facing JSON Schema, generated from the runtime definition.
{ "type": "object", "properties": { "role_id": { "type": "string", "description": "The role ID to edit (from get_role_info or list_roles)." }, "name": { "type": "string", "description": "Optional: new name for the role." }, "color": { "type": "string", "description": "Optional: new hex color (e.g. '#00FF00'). Use '#000000' to remove color." }, "hoist": { "type": "string", "enum": [ "true", "false" ], "description": "Optional: whether to display the role separately in the sidebar." }, "mentionable": { "type": "string", "enum": [ "true", "false" ], "description": "Optional: whether anyone can @mention this role." }, "reason": { "type": "string", "description": "Optional: reason for editing the role (audit log)." } }, "required": [ "role_id" ]}Execution requirements
Section titled “Execution requirements”- actor_grant
- guild context should exist
- role must exist
Expected postconditions
Section titled “Expected postconditions”- edits the role properties