permissions_explain
Computes a member's, role's, or bot's effective permissions in a Discord channel and shows which role or overwrite step decides view_channel or send_messages, explaining why access is denied.
Instructions
Effective permissions of a member (or of a role alone, or "me" for the bot) in a channel, computed like Discord does (base roles -> @everyone overwrite -> role overwrites -> member overwrite), with the step that decided view_channel/send_messages. Answers 'why can't X see/post in #Y'.
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": {
"channel": "<channel>",
"who": "<who>"
},
"name": "permissions_explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | ||
| who | Yes | ||
| guild | No | ||
| channel | Yes |