Lingard Vocab
v0.5.10Build and enrich your Lingard vocabulary: topic collections, flashcards, translations, examples.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search Search Lingard Vocab
Searches the user's live Lingard account: vocabulary, learning context, English profile, totals, collection titles, saved words, flashcards, and missing vocabulary fields. Results are read from Firestore at the time of the call.
| Parameter | Type | Description |
|---|---|---|
q | string | Alias for query. |
query | string | Search query, for example "English learning context" or "saved vocabulary collections". |
targetLang | string | Lingard target language code such as en, de, es, fr, it, pl, or pt. Defaults to en when the prompt asks about English. |
fetch Fetch Lingard Vocab Record
Fetches the full live Lingard JSON record for a search-result id (e.g. "learning-context:en") or a Lingard resource URI such as lingard://learning-context/en.
| Parameter | Type | Description |
|---|---|---|
id | string | Preferred selector: a search-result id, e.g. "learning-context:en". Takes `id` OR `uri` (not both); if both are given, `id` wins. |
targetLang | string | Fallback used only when neither `id` nor `uri` is provided: a language code (en, de, es, fr, it, pl, pt) whose learning context to fetch. |
uri | string | Alternative selector, used only when `id` is omitted: a Lingard resource URI, e.g. "lingard://learning-context/en". |
lingard_get_learning_context Get Lingard Learning Context
Returns the user's current Lingard learning context, read live from their account: English profile, vocabulary totals, saved collections and their titles, card counts, and missing-field stats. Earlier answers in the conversation may be out of date; this is the account as it stands now. The list covers every collection the account has, so the per-collection counts add up to the card total (totals.truncated marks a library too large to list in full). Every collection reports `source`: "user" (made by the user), "catalog" (a curated Lingard collection — read-only, its words come from the Lingar…
| Parameter | Type | Description |
|---|---|---|
targetLang * | string | The language the user is learning, as a Lingard language code, e.g. en, de, es, fr, it, pl, pt. |
lingard_get_vocab_collection Get Lingard Vocabulary Collection
Returns live cards from one Lingard vocabulary collection by UUID or title, including curated Lingard collections and the "Words not in a collection" bucket of cards saved while reading. With includeExamples:true it also returns each card's example sentences and their translations, which editing examples starts from.
| Parameter | Type | Description |
|---|---|---|
targetLang * | string | The language the user is learning, as a Lingard language code, e.g. en, de, es, fr, it, pl, pt. |
collectionTitle | string | Collection selector (alternative to `collectionUuid`): the collection title. |
collectionUuid | string | Collection selector (preferred): its UUID. One of `collectionUuid` or `collectionTitle` is required. |
includeExamples | boolean | Default false. True returns the full example rows (`examples`: example text, translation line, enabled flag) for every card instead of just the `exampleCount`. |
limit | integer | Optional max number of cards to return (1–1000). |
lingard_get_collection_gaps Get Lingard Collection Gaps
Returns live Lingard cards in a collection that are missing requested fields such as translation, POS, pronunciation, examples, or image. A curated Lingard collection always reports zero gaps: its words come from the Lingard catalog and are not the user's to fill.
| Parameter | Type | Description |
|---|---|---|
targetLang * | string | The language the user is learning, as a Lingard language code, e.g. en, de, es, fr, it, pl, pt. |
collectionTitle | string | Collection selector (alternative to `collectionUuid`): the collection title. |
collectionUuid | string | Collection selector (preferred): its UUID. One of `collectionUuid` or `collectionTitle` is required (UUID wins if both are given). |
fields | array | Optional. An ARRAY of field-name strings, not a bare string: e.g. ["translation"] for one field or ["translation","image"] for several. Returns cards missing ANY listed field; without it every field i… |
limit | integer | Optional max number of cards to return (1–1000, default 200). |
lingard_get_word_suggestion_context Get Lingard Word Suggestion Context
Returns live Lingard profile level, topic, collection context, and the words the user already has: the context for suggesting level-appropriate new cards that are not duplicates.
| Parameter | Type | Description |
|---|---|---|
targetLang * | string | The language the user is learning, as a Lingard language code, e.g. en, de, es, fr, it, pl, pt. |
collectionTitle | string | Optional collection the new words are meant for, by title (alternative to `collectionUuid`). |
collectionUuid | string | Optional collection the new words are meant for, by UUID (wins over `collectionTitle`). The result says whether it accepts new cards. |
count | integer | How many new words are planned (1–100, default 20); returned as guidance.generateExactly. |
excludeLimit | integer | Max number of the user's existing words returned for deduplication (100–5000, default 1000); exclusions.truncated marks a longer list. |
level | string | Optional level of the new words, e.g. A2 or B1. Defaults to the level in the user's Lingard profile. |
topic | string | Optional topic of the new words, e.g. "airport" or "cooking". Defaults to the title of the selected collection. |
lingard_preview_vocab_changes Preview Lingard Vocabulary Changes
Previews a Lingard vocabulary collection/card change without writing to Firestore. Cards are checked as on commit. Unless allowIncompleteCards is true, a new card needs title, translate, pos, pron/ipa, syns, and examples with translations; image is optional. A German or Romance noun title carries its dictionary article when one is used, e.g. der Hund, die Reise, das Haus. In example text and example translation the target word and the translated word are marked with {}. form is not part of speech: it holds the inflected-form category of the current word and stays empty for base forms.
lingard_commit_vocab_changes Commit Lingard Vocabulary Changes
Commits a previously previewed or freshly supplied Lingard vocabulary change. Unless allowIncompleteCards is true, a new card needs title, translate, pos, pron/ipa, syns, and examples with translations; image is optional. A German or Romance noun title carries its dictionary article when one is used, e.g. der Hund, die Reise, das Haus. In example text and example translation the target word and the translated word are marked with {}. form is not part of speech: it holds the inflected-form category of the current word and stays empty for base forms. This is the tool that corrects existing cards…
lingard_create_vocab_collection Create Lingard Vocabulary Collection
Creates a Lingard vocabulary collection, optionally with initial cards; commit=true writes it. Unless allowIncompleteCards is true, a new card needs title, translate, pos, pron/ipa, syns, and examples with translations; image is optional. A German or Romance noun title carries its dictionary article when one is used, e.g. der Hund, die Reise, das Haus. In example text and example translation the target word and the translated word are marked with {}. form is not part of speech: it holds the inflected-form category of the current word and stays empty for base forms.
| Parameter | Type | Description |
|---|---|---|
collectionTitle * | string | Title of the new collection. When the user already has a collection of their own with this title, the cards go into that one instead of a second collection. |
targetLang * | string | The language the user is learning, as a Lingard language code, e.g. en, de, es, fr, it, pl, pt. |
allowIncompleteCards | boolean | Default false. True marks the cards as a sparse import that the user asked for; it lets them through without the complete-card fields (everything except image, the dictionary article on a German/Roman… |
cards | array | Optional initial cards of the collection. |
color | string | Optional Lingard collection color. Accepts Swift raw hex like ff9500 or names like orange. |
commit | boolean | True writes. Default false returns a preview of the result without writing. |
icon | string | Alias for pic. |
pic | string | Optional Lingard standard collection icon raw value, for example collection.plane or plane. |
topic | string | Optional topic of the collection, e.g. "Airport and flights"; defaults to the title. |
lingard_add_words_to_collection Add Lingard Words To Collection
Adds cards to an existing Lingard collection, deduplicating by normalized word title; commit=true writes them. Only collections with writable="full" accept new cards: curated Lingard collections are read-only and the unfiled bucket takes no new cards. Unless allowIncompleteCards is true, a new card needs title, translate, pos, pron/ipa, syns, and examples with translations; image is optional. A German or Romance noun title carries its dictionary article when one is used, e.g. der Hund, die Reise, das Haus. In example text and example translation the target word and the translated word are mark…
| Parameter | Type | Description |
|---|---|---|
cards * | array | Cards to add. A word already in the collection (same normalized title) is handled as mergeMode says. |
targetLang * | string | The language the user is learning, as a Lingard language code, e.g. en, de, es, fr, it, pl, pt. |
allowIncompleteCards | boolean | Default false. True marks the cards as a sparse import that the user asked for; it lets them through without the complete-card fields (everything except image, the dictionary article on a German/Roman… |
collectionTitle | string | Collection selector (alternative to `collectionUuid`): the collection title. |
collectionUuid | string | Collection selector (preferred): its UUID. One of `collectionUuid` or `collectionTitle` is required (UUID wins if both are given). |
commit | boolean | True writes. Default false returns a preview of the result without writing. |
mergeMode | string | What to do with a word that is already in the collection: "fill_missing" (default) fills its empty fields, "add_only" leaves it as it is. |
lingard_fill_missing_card_fields Fill Missing Lingard Card Fields
Fills empty fields on existing Lingard cards. It never overwrites or clears a field that already has a value. Works on the user's own collections and on the "Words not in a collection" bucket; curated Lingard collections are read-only because their content comes from the Lingard catalog. commit=true writes.
| Parameter | Type | Description |
|---|---|---|
cards * | array | The values to fill in, one entry per card, matched to the collection's cards by word title. Only fields that are empty on the card are written. |
targetLang * | string | The language the user is learning, as a Lingard language code, e.g. en, de, es, fr, it, pl, pt. |
collectionTitle | string | Collection selector (alternative to `collectionUuid`): the collection title. |
collectionUuid | string | Collection selector (preferred): its UUID. One of `collectionUuid` or `collectionTitle` is required (UUID wins if both are given). |
commit | boolean | True writes. Default false returns a preview of the result without writing. |
lingard_update_example_translations Update Lingard Example Translations
Rewrites only the translation line of examples that already exist on Lingard cards; the example sentence, its {} highlights and its audio/typing markers are left exactly as they are. It changes, adds, or removes example translations; an empty translation is a supported card state, not an error. `translations` holds one entry per existing example, in order, so it is built from the card's current examples (a collection read with includeExamples:true lists them). commit=true writes; without it the call returns the resulting examples as a preview.
| Parameter | Type | Description |
|---|---|---|
cards * | array | One entry per card to edit. Each entry needs a card selector (`cardId`, or `title` plus a collection when the word occurs in several) and `translations`. |
targetLang * | string | The language the user is learning, as a Lingard language code, e.g. en, de, es, fr, it, pl, pt. |
collectionTitle | string | Optional default collection title for cards addressed by title. |
collectionUuid | string | Optional default collection for cards addressed by title. |
commit | boolean | True writes. Default false returns the resulting examples without saving. |
lingard_attach_card_images Attach Lingard Card Images
Attaches supplied images to existing Lingard cards. It does not generate images: each entry carries the image itself as imageBase64 or dataUri, or an imageUrl that the server downloads. PNG, JPEG, WebP, and SVG inputs are converted to WebP and uploaded as private custom card images; an image the card already has is replaced. commit=true writes.
| Parameter | Type | Description |
|---|---|---|
images * | array | One entry per card to illustrate. Each entry needs a card selector (`cardId` or `title`) and exactly one image source (`imageBase64`, `dataUri`, or `imageUrl`). |
targetLang * | string | The language the user is learning, as a Lingard language code, e.g. en, de, es, fr, it, pl, pt. |
collectionTitle | string | Optional default collection title for cards addressed by title. |
collectionUuid | string | Optional default collection (by UUID) for cards addressed by title. |
commit | boolean | True uploads and attaches. Default false returns a dry-run preview without writing. |
lingard_get_learning_pauses Get Lingard Learning Pauses
Lists, for one language, the user's collections and sources (books, the news) and which of them are on pause. A collection or source on pause gives the automatic «Now learning» sessions no words — no new words and no reviews — and is not counted in the day's goals or reminders; opening it in the app still studies it as usual. Each entry carries the exact uuid, bookKey, and title that pause changes take.
| Parameter | Type | Description |
|---|---|---|
targetLang * | string | The learned language, e.g. en, de, es, fr. |
lingard_set_learning_pauses Set Lingard Learning Pauses
Puts collections and sources on pause or takes them off it, for one language — e.g. "study only my Travel collection this week", "pause the news words", "resume everything". action: "pause" or "resume" the listed ones; "only" — resume the listed ones and pause every other collection and source of the language; "resume_all" — take every pause off (lists ignored). Collections are named by uuid or exact title and sources by bookKey or exact title, as the learning-pause list reports them. A paused item gives the automatic «Now learning» sessions no words and is not counted in goals or remi…
| Parameter | Type | Description |
|---|---|---|
action * | string | "pause" or "resume" the listed collections and sources; "only" resumes the listed ones and pauses every other one of the language; "resume_all" takes every pause off and ignores the lists. |
targetLang * | string | The learned language, e.g. en, de, es, fr. |
collections | array | Collections by uuid or exact title. |
commit | boolean | True writes. Default false returns a preview without writing. |
sources | array | Sources by bookKey (catalog:… / imported:…) or exact title. |