add_flashcard
Add a single flashcard to Anki, creating the deck if needed. Insert questions and answers with optional tags, model, and duplicate checks.
Instructions
Add a single flashcard to Anki. Creates the deck if it doesn't exist.
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": {
"deck": "<deck>",
"front": "<front>",
"back": "<back>"
},
"name": "add_flashcard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| back | Yes | Back of card (answer) | |
| deck | Yes | Target deck name (created if doesn't exist) | |
| tags | No | Optional list of tags | |
| front | Yes | Front of card (question/prompt) | |
| model | No | Note type (default: Basic) | Basic |
| duplicate_scope | No | How broadly to check for duplicates: 'collection' (default, matches Anki's default), 'deck' (only the target deck), or 'deck_and_subdecks' | collection |