ai_moderate
AI content moderation — Flag text for unsafe content (hate, harassment, sexual, violence, self-harm, illegal) via Workers AI; returns SAFE or FLAGGED with a reason. Price: $0.006 USDC (Base, via x402).
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": {
"text": "<text>"
},
"name": "ai_moderate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | text to screen |