lookup_translation_memory
Retrieve a cached translation from the local translation memory by querying with source text, source language, and target language codes.
Instructions
Look up a (text, sourceLang, targetLang) tuple in the local translation-memory cache. Returns {ok, match: {translation, hits} | null}. No external API call — pure local SQLite query.
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>",
"sourceLang": "<sourceLang>",
"targetLang": "<targetLang>"
},
"name": "lookup_translation_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Source text to look up. | |
| sourceLang | Yes | Source language code. | |
| targetLang | Yes | Target language code. |