get_audit_log
Read a Discord server's audit log to review moderation and admin activity, filtering by user, action type, target, or pagination IDs.
Instructions
Read the server audit log (needs View Audit Log). Filter by user_id, action_type, before/after. [GET /guilds/{guild_id}/audit-logs]
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>"
},
"name": "get_audit_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Return items after this ID (pagination) | |
| limit | No | Max results | |
| before | No | Return items before this ID (pagination) | |
| user_id | No | User ID | |
| guild_id | Yes | Server (guild) ID | |
| target_id | No | Target ID | |
| action_type | No | Audit log action type number |