ai_translate
Translate text between 100 languages (m2m100): up to 5,000 characters, target language as an ISO 639-1 code; the source language is detected when not given. 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>",
"to": "<to>"
},
"name": "ai_translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target language (fr, es, de, ja, zh...) | |
| from | No | Source language; detected when omitted | |
| text | Yes | Text to translate |