Add cards
import_flashcardsWhen the user wants cards saved to a collection they have named or chosen — e.g. "add these sentences to my 'Kitchen words' collection", "save them to the new one". Adds the given card texts (a word, phrase or sentence with a source side and a target side) to one of the user's collections, where they enter the user's spaced-repetition reviews. Text only: this tool creates no audio or images; the app voices a card when it is played. At most 200 cards per call, each side up to 2,000 characters; the collection must exist and belong to the user (create_collection makes 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": {
"collection_id": "<collection_id>",
"source_lang": "<source_lang>",
"target_lang": "<target_lang>",
"items": "<items>"
},
"name": "import_flashcards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | 1–200 cards, e.g. {"source": "the kitchen", "target": "de keuken"}. | |
| 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 | Yes | Id of the user's own collection, from create_collection or get_my_content_subscriptions, e.g. '12345'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |