translate_all
Translate markdown content into up to 7 languages at once, running translations concurrently with GPU-safe limits. Returns per-language output with optional nav bar injection.
Instructions
Translate markdown content into multiple languages at once (default: 7 languages — Japanese, Chinese, Spanish, French, Hindi, Italian, Portuguese). Runs translations concurrently with GPU-safe semaphore limiting. Returns translated content for each language with optional nav bar injection.
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": {
"markdown": "<markdown>"
},
"name": "translate_all"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Source language code (default: "en") | |
| model | No | Ollama model (default: "translategemma:27b") | |
| navBar | No | Inject a language nav bar at the top of each output (default: true) | |
| markdown | Yes | The full markdown content to translate | |
| languages | No | Target language codes to translate into (default: all 7 — ["ja", "zh", "es", "fr", "hi", "it", "pt"]) | |
| onLostSpan | No | What to do when a protected span (inline code, a protected term such as XLS-30 or Kimi-K3, or an "N of M" count) is missing from a translation: "report" (default) lists it with the result, "fail" makes it an error. | |
| concurrency | No | Max concurrent language translations (default: 2, max: 3) | |
| onUntranslated | No | What to do when prose (a sentence of 6 or more words) comes back identical to the English after its one retry: "report" (default) lists it with the result, "fail" makes it an error. |