add_translation
Save a source sentence and its translation into a Lara Translate translation memory so you can reuse approved wording and keep terminology consistent.
Instructions
Adds a translation to a translation memory in your Lara Translate account.
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": {
"id": "<id>",
"source": "<source>",
"target": "<target>",
"sentence": "<sentence>",
"translation": "<translation>"
},
"name": "add_translation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID or list of IDs where to save the translation unit. Format: mem_xyz123 | |
| tuid | No | Translation Unit unique identifier | |
| source | Yes | The source language code of the sentence, it MUST be a language supported by the system, use the list_languages tool to get a list of all the supported languages | |
| target | Yes | The target language code of the translation, it MUST be a language supported by the system, use the list_languages tool to get a list of all the supported languages | |
| sentence | Yes | The source sentence | |
| translation | Yes | The translated sentence | |
| sentence_after | No | The sentence after the source sentence to specify the context of the translation unit | |
| sentence_before | No | The sentence before the source sentence to specify the context of the translation unit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Import job identifier | |
| end | No | End offset of the import | |
| size | No | Total number of units in the import | |
| begin | No | Begin offset of the import | |
| channel | No | Channel identifier used by the import | |
| progress | No | Import progress between 0 and 1 (1 means complete) |