Translate text
translateConverts text between 100+ languages, auto-detecting the source and preserving formatting, names, numbers, and URLs; split text over 2,000 characters at paragraph breaks.
Instructions
Translate text between any two languages (100+). Detects the source language (or pass source_lang). Keeps formatting, names, numbers and URLs intact. Up to 2,000 characters per call; longer text is refused uncharged, so split it at paragraph breaks. Costs $0.003 per call.
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>",
"target_lang": "<target_lang>"
},
"name": "translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to translate (up to 2,000 characters). | |
| source_lang | No | Source language, if known. Detected automatically when left out. | |
| target_lang | Yes | Language to translate into, as a name or code: "Spanish", "es", "Japanese", "pt-BR". |