translate_batch
Translate multiple texts to a single target language.
Use for lists of strings, UI labels, i18n files, subtitle cues, and
voiceover segments. Prefer one batch over separate translate calls.
Texts are translated together using the team's TM and style guides.
A failed or incomplete batch is a tool error; do not synthesize its output.
Args:
texts: List of texts to translate.
target_language: Full target language name (e.g. "French").
target_language_code: Optional ISO language code.
source_language: Source language name. Defaults to English.
source_language_code: Source language code. Defaults to "en".
context: Optional context to guide all translations.
formality: Tone override for all translations.
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": {
"texts": "<texts>",
"target_language": "<target_language>"
},
"name": "translate_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| texts | Yes | List of texts to translate. | |
| context | No | Optional context to guide all translations. | |
| formality | No | Tone override for all translations. | |
| source_language | No | Source language name. Defaults to English. | English |
| target_language | Yes | Full target language name (e.g. "French"). | |
| source_language_code | No | Source language code. Defaults to "en". | en |
| target_language_code | No | Optional ISO language code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |