ai_classify
AI zero-shot classify — Pick the best-fitting label for text from a caller-supplied list via Workers AI. 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>",
"labels": "<labels>"
},
"name": "ai_classify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | text to classify | |
| labels | Yes | comma-separated candidate labels (e.g. spam,ham) |