Change the glossary of the translation
set_glossaryTell the machine translator how to translate terms: {"en": {"стенд, стенде, стенда": "lab", "засечки, засечек": "marks", "Занятие": "Lesson"}} -- the target language, the term with the forms of it that differ (separated by commas) and its translation. For a presentation ("slug", you may edit it) or for all of a project ("project", yours). The entries are added to the glossary; an entry with "" as its translation is taken out; "replace": true replaces the whole glossary. The machine translations of the texts with these terms are made again (translations written by people stay).
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": {
"glossary": "<glossary>"
},
"name": "set_glossary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | The presentation (its slug) -- or give "project". | |
| project | No | The project (its slug): its glossary counts for all its presentations. | |
| replace | No | Replace the whole glossary (default: add to it). | |
| glossary | Yes | {"<language>": {"<term, its forms>": "<translation>"}}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | The project of the presentation, if any. | |
| glossary | Yes | {"<language>": {"<term, its forms>": "<translation>"}}. | |
| translator | No | Whether the site has a machine translator. | |
| project_glossary | No | The glossary of that project (counts too). |