Update AutoMod rule
update_automod_ruleChange an AutoMod rule's name, toggle it on or off, or replace its keyword list. Risky changes like turning a rule off return a preview and confirm_token, so nothing applies until you confirm.
Instructions
Rename a rule, enable or disable it, or replace its keyword list. Turning a rule off, or a new list that leaves out keywords the rule has now, stops it catching what it caught, so that needs confirming: the first call changes nothing and returns a preview and a confirm_token, and repeating the call with the token makes the change. Renaming, turning a rule on, and adding keywords happen at once.
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": {
"rule": "<rule>"
},
"name": "update_automod_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| rule | Yes | Rule name or ID. | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| enabled | No | ||
| keywords | No | Replaces the keyword list on keyword rules. | |
| confirm_token | No | The token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree. |