Preview cards
preview_flashcardsWhen the user wants flashcards written in the conversation saved and has not named the collection they go to — e.g. "save these words", "show me the cards first" — or once the cards of a new collection are written. Lists the card texts with where they can go: one of the user's own collections for that language pair, or a new collection with a name. In the Taalhammer card view the user picks the collection and saves there. Checked against the same limits as saving (1–200 cards, each side up to 2,000 characters). Saves nothing itself; saving is import_flashcards (create_collection for a new one). Requires the user's Taalhammer account.
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": {
"source_lang": "<source_lang>",
"target_lang": "<target_lang>",
"items": "<items>"
},
"name": "preview_flashcards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | 1–200 cards, e.g. {"source": "the kitchen", "target": "de keuken"}. | |
| level | No | Optional CEFR level of the cards, e.g. 'A2' (A1–C2); a new collection is created with it. | |
| new_title | No | Optional name for a NEW collection, e.g. 'Love — Dutch A2'. Given without collection_id = the cards are offered for a new collection with this name. | |
| source_lang | Yes | ISO code of the source side, e.g. 'en'. | |
| target_lang | Yes | ISO code of the target side, e.g. 'nl'. | |
| collection_id | No | Optional id of the user's own collection the cards would go to, e.g. '12345'. Empty = the user's own collection for this language pair that new cards go to first. |