Generate a flashcard deck
generate_deckGenerates a new flashcard deck with NextLang's own generator and saves it to the user's account. Costs 1 credit: unless the user explicitly asked for a new deck, confirm first. A tentative request ('maybe make me a deck', 'could we do one about...') is not an explicit one: confirm first. Cards are built from 'prompt' (a topic, a situation or a short text of up to 500 characters); the front of each card is in learningLanguage. It makes basic front/back cards only: cloze (fill-in-the-blank) decks are made on the NextLang website, so do not promise cloze cards from this tool. Returns the cards, a link to the deck on NextLang (the user downloads and studies it there) and the remaining credits. For Quizlet and Brainscape, send the user to that link to import: its Copy button keeps the exact separators, which copying from a chat often turns into spaces. Offer the cards as text only as a fallback. Do not call get_credits first: when the balance is too low this tool says so and returns a link explaining credits. If this call fails or times out, call list_decks before trying again: the deck may already exist, and generating again spends another credit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of cards (free accounts: up to 15) | |
| level | No | CEFR level of the words. Pass it only when the user named a level; otherwise leave it out and b1 is used | |
| prompt | Yes | A topic, a situation or a short text to build the deck from | |
| platform | Yes | Flashcard app the deck is for | |
| learningLanguage | Yes | Language being learned; the front of each card | |
| translationLanguage | Yes | Language of the translations |