translate
Convert text between languages with automatic detection, context-aware output, glossaries, and translation memories. Accepts one target language per call.
Instructions
Translate text between languages using Lara Translate. Supports language detection, context-aware translations, translation memories, and glossaries. The optional 'instructions' parameter accepts short localization directives (e.g., 'Translate formally') — only provide them when the content specifically requires tone, formality, or terminology adjustments. IMPORTANT: 'target' accepts exactly one language code per call. If the user asks to translate into multiple languages (e.g., 'into Italian and German'), call this tool once per target language and present all resulting translations together. IMPORTANT: 'glossaries' requires glossary IDs in the 'gls_*' format, not glossary names. If the user refers to a glossary by name (e.g., 'our company glossary', 'the marketing glossary'), call list_glossaries first, match the name, and use the returned ID here. If no matching glossary is found, tell the user instead of guessing an ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | An array of text blocks to translate. Each block contains a text string and a boolean indicating whether it should be translated. This allows for selective translation where some text blocks can be preserved in their original form while others are translated. | |
| style | No | Controls how the translation balances accuracy against natural readability. 'faithful' stays close to the source, 'fluid' prioritizes natural readability, 'creative' allows more freedom in the translation. | |
| source | No | The source language code (e.g., 'en-EN' for English). If not specified, the system will attempt to detect it automatically. If you have a hint about the source language, you should specify it in the source_hint field. | |
| target | Yes | The target language code (e.g., 'it-IT' for Italian). This specifies the single language you want the text translated into. This field accepts ONE language code only. If the user wants the text translated into multiple languages, call this tool once per target language. | |
| context | No | Additional context string to improve translation quality (e.g., 'This is a legal document' or 'Im talking with a doctor'). This helps the translation system better understand the domain. | |
| adapt_to | No | A list of translation memory IDs (format 'mem_*') for adapting the translation. If the user refers to a memory by name rather than by ID, call list_memories first to resolve the name to its ID before calling this tool. | |
| no_trace | No | Privacy flag. If set to true, the request content will not be stored or traced by Lara. Use for sensitive content. | |
| priority | No | Translation priority. 'normal' for real-time translations, 'background' for batch processing with lower priority. | |
| reasoning | No | Enables Lara Think multi-step linguistic analysis. Can increase processing time up to 10x but may improve translation quality for complex texts. | |
| glossaries | No | Array of glossary IDs to apply during translation (max 10). IDs must match format: gls_* (e.g., ['gls_xyz123', 'gls_abc456']). Glossaries enforce specific terminology and terms. If the user refers to a glossary by name rather than by ID (e.g., 'my company glossary'), call list_glossaries first to resolve the name to its ID before calling this tool. | |
| source_hint | No | Used to guide language detection. Specify this when the source language is uncertain to improve detection accuracy. | |
| content_type | No | Specifies the content type of the text. Autodetected if omitted. | |
| instructions | No | Optional list of short localization directives to adjust translation output. Each instruction MUST be no more than 20 words. These are NOT free-form LLM prompts — they are expert localization directives about formality, tone, or domain-specific terminology. Only provide instructions when the content specifically requires them; omitting instructions for general content preserves higher translation quality. Do NOT combine contradictory instructions (e.g., formal and informal tone together). Examples: 'Translate formally', 'Use a creative and concise tone', 'Make translation gender-neutral', 'Mask any price with the [price] placeholder', 'Use quotation marks (« ») for quotations'. | |
| timeout_in_millis | No | Custom timeout for the translation request in milliseconds. Max: 300000ms (5 minutes). Useful for very long texts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Translated text blocks, in the same order and structure as the input. Blocks marked translatable: false are preserved verbatim. |