discord_mod_get_audit_log
Retrieve audit logs from a Discord server to identify who did what, when, and why. Filter by user, action type, or paginate results.
Instructions
Fetches the audit log for a server. Shows who did what, when, and why.
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": {
"guildId": "<guildId>"
},
"name": "discord_mod_get_audit_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max entries to return (1-100, default 50) | |
| before | No | Entry ID to paginate before | |
| userId | No | Filter by executor user ID | |
| guildId | Yes | The ID of the server | |
| actionType | No | Filter by action type (e.g. MemberKick, MemberBanAdd, MessageDelete) |