Translate Text
translate_textTranslate a single text into a target language using Google or your configured AI provider, with optional source-language detection and engine override.
Instructions
Translate one piece of text with Google or the configured AI provider (BYOK).
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>"
},
"name": "translate_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to translate. | |
| engine | No | Translation engine override: google (free) or ai (BYOK). | |
| source_lang | No | Source language code, or "auto" to detect. Defaults to auto. | |
| target_lang | No | Target language code (e.g. en, zh-CN, ja). Defaults to the server config. |