Get audit log
get_audit_logRetrieves Discord audit log entries showing who performed which administrative action, when, and why; filter by action name, acting user, or guild to investigate past moderation events.
Instructions
Discord's historical record of administrative actions: who did what, to what, when, and why. Use this to investigate what already happened; for activity as it happens use subscribe_events. Filter by action name (like channel_create, member_ban_add, message_delete) or by the acting user. Discord merges some actions repeated in quick succession (message deletes, member moves and disconnects, channel and role reordering) into one entry that keeps only the first reason.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_audit_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Only entries by this user (name or ID). | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| limit | No | Max entries. Default 25. | |
| action | No | Action name filter, like channel_delete or member_kick. |