ai.translate
Translate text into a target language, auto-detecting the source language when omitted.
Instructions
Translate text into a target language. Source language auto-detected if omitted.
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>",
"targetLanguage": "<targetLanguage>"
},
"name": "ai.translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| sourceLanguage | No | Optional BCP-47 source code; auto-detected by default. | |
| targetLanguage | Yes | BCP-47 language code, e.g. "es", "ja", "zh-Hans". |