translate
Translate text across 200+ languages using a local model. Runs offline on your CPU, ensuring data never leaves your machine.
Instructions
Translate text between 200+ languages using the NLLB-200 model, running entirely on your local CPU. No cloud APIs, no data leaves your machine.
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>",
"source_lang": "<source_lang>",
"target_lang": "<target_lang>"
},
"name": "translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to translate | |
| source_lang | Yes | Source language code (FLORES-200, ISO 639-1, or language name). Examples: "eng_Latn", "en", "English", "zho_Hans", "zh", "中文". Use list_languages to see all supported codes. | |
| target_lang | Yes | Target language code (FLORES-200, ISO 639-1, or language name). Examples: "zho_Hans", "zh", "中文", "eng_Latn", "en", "English". |