ai_triage
Rates messages for spam/phishing, category, and priority, then suggests actions; previews by default and applies approved moves only with safety checks.
Instructions
AI triage: rates messages (spam/phishing, category, priority) and suggests actions; apply=True executes them (default: preview only).
Safety: spam/phishing is moved to the spam folder (reversible) only with a
failed SPF/DMARC check, never deleted; protected and pinned senders and
low-confidence verdicts are never moved. Combines the auth check, the
Claude verdict and your policy (get_ai_policy/set_ai_policy). Needs
ANTHROPIC_API_KEY. Do not auto-approve apply=True.
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": "ai_triage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | ||
| limit | No | ||
| folder | No | INBOX | |
| all_mail | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |