Generate flashcards with AI
generate_cardsCreate a flashcard deck for any topic. Reuses an existing public deck to avoid generation quota, or generates a new original deck when needed.
Instructions
Generate a flashcard deck about a topic using FlashLearnAI. If a public deck for the topic already exists it is reused (source: "shared") and no generation quota is spent; otherwise a new deck is created (source: "generated"). Counts against the monthly generation quota when it generates.
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": {
"topic": "<topic>"
},
"name": "generate_cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional title for the created set (defaults to the topic) | |
| topic | Yes | The subject to generate flashcards about, e.g. "Photosynthesis in plants" | |
| description | No | Optional description for the created set |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| setId | Yes | ||
| source | Yes | ||
| cardCount | Yes | ||
| flashcards | Yes |