execute_automod_alert_action
Triggers a Discord AutoModeration alert action for a specific guild message and channel, with an optional audit-log reason.
Instructions
Execute AutoMod Alert Action. [POST /guilds/{guild_id}/auto-moderation/alert-action]
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>",
"channel_id": "<channel_id>",
"message_id": "<message_id>",
"alert_action_type": "<alert_action_type>"
},
"name": "execute_automod_alert_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Reason (shown in the audit log) | |
| guild_id | Yes | Server (guild) ID | |
| channel_id | Yes | Channel ID | |
| message_id | Yes | Message ID | |
| alert_action_type | Yes | alert action type |