ai_sentiment
Sentiment of a text (review, post, email, support ticket): positive, negative, neutral or mixed, a score from -1 to 1, confidence, up to 3 emotions and per-aspect sentiment. Up to 5,000 characters, any language. Llama 4 Scout on Workers AI. Costs $0.003 USDC on 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_sentiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text, up to 5,000 characters |