Save new words
add_vocabulary_itemsSaves new words to the user's NextLang vocabulary for one language pair, so they join the spaced-repetition schedule. Use when the user asks to save or add words, for example from a text you discussed. Put each word in 'term' in the language being learned and its meaning in 'translation'; add a short example sentence when it helps. Words the user already has are skipped, not duplicated. Returns how many were added, already saved, or invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| words | Yes | ||
| learningLanguage | Yes | Language the user is learning; every term is in this language | |
| translationLanguage | Yes | Language of the translations and of exampleTranslation |