Aller au contenu

glossary_create

Create a glossary entry. rule_type is one of translation | do_not_translate | forbidden and defaults to 'translation'. translations ({: value}) is honored only for rule_type='translation' (cleared otherwise by the backend). Returns the created GlossaryEntry. Errors 409 if an entry with the same (rule_type, term) already exists - use glossary_update to change an existing one.

NomTypeDescription
project_uuidstringoptionnelProject UUID. Required when multiple projects are configured (SONENTA_PROJECTS); defaults to the single configured project otherwise.
rule_typestringoptionnelRule type. Defaults to 'translation'. (translation, do_not_translate, forbidden)
termstringrequisThe source term/phrase the rule applies to.
translationsobjectoptionnelPer-locale target translations, e.g. {"fr": "tableau de bord"}. Only used for rule_type='translation'.
case_sensitivebooleanoptionnelMatch the term case-sensitively.
notestringoptionnelOptional human note.
{
"tool": "glossary_create",
"arguments": {
"term": "<term>"
}
}