Search translation memory
tm_queryQuery translation memory (hybrid retrieval; free).
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": {
"query_text": "<query_text>",
"source_lang": "<source_lang>",
"target_lang": "<target_lang>"
},
"name": "tm_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | How many matches to return, 1–50 (default 8). | |
| query_text | Yes | Source-language text to find matches for, e.g. a sentence or paragraph. | |
| document_id | No | Apply this document’s translation-memory settings (which projects and statuses count). | |
| source_lang | Yes | Language of query_text: a language code, e.g. "de" or "zh". | |
| target_lang | Yes | Language of the translations to return: a language code, e.g. "de" or "zh". | |
| cross_language | No | Also return matches from other language pairs (default false). |