Translate
translateTranslate text between languages using a LibreTranslate instance you supply — pass _apiKey for libretranslate.com or _endpoint for a self-hosted server. For translation with no key of your own, call mymemory_translate instead.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "Hello, how are you?",
"source": "en",
"target": "es"
},
"name": "translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to translate | |
| source | Yes | Source language code (e.g. "en" for English, "es" for Spanish) | |
| target | Yes | Target language code (e.g. "es" for Spanish, "fr" for French) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source language code | |
| target | Yes | Target language code | |
| original_text | Yes | The original text that was translated | |
| translated_text | Yes | The translated text result |