flashdeck
v0.1.0Flashcard decks and spaced repetition via AnkiConnect: study, decks, notes, and stats.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sync
Sync with AnkiWeb.
get_due_cards
Get due cards, optionally filtered by deck.
| Parameter | Type | Description |
|---|---|---|
deck | string | Deck name to filter due cards by. |
include_answer | boolean | When true, include each card's answer (back side). |
get_cards
Get cards filtered by state and deck.
| Parameter | Type | Description |
|---|---|---|
deck | string | Deck name to filter cards by. |
include_answer | boolean | When true, include each card's answer (back side). |
state | string | Card state to filter by, such as new, learning, review, or due. |
present_card
Show a card's question/front.
| Parameter | Type | Description |
|---|---|---|
card_id * | number | ID of the card to present. |
rate_card
Rate a card (Again/Hard/Good/Easy) and schedule next review.
| Parameter | Type | Description |
|---|---|---|
card_id * | number | ID of the card being rated. |
ease * | number | Ease rating: 1 (Again), 2 (Hard), 3 (Good), or 4 (Easy). |
listDecks
List decks, optionally with per-deck statistics.
| Parameter | Type | Description |
|---|---|---|
include_stats | boolean | When true, include per-deck statistics in the result. |
deckStats
Get statistics for one deck.
| Parameter | Type | Description |
|---|---|---|
deck * | string | Name of the deck to get statistics for. |
createDeck
Create a new deck with the given name, using :: for nested decks such as Parent::Child.
| Parameter | Type | Description |
|---|---|---|
deck * | string | Name of the new deck (use :: for nested decks, such as Parent::Child). |
addNote
Create one note.
| Parameter | Type | Description |
|---|---|---|
deck_name * | string | Name of the deck to add the note to. |
fields * | object | Field values for the note, keyed by field name. |
model_name * | string | Note type (model) name, such as Basic. |
tags | array | Tags to apply to the new note. |
addNotes
Batch-create up to 100 notes.
| Parameter | Type | Description |
|---|---|---|
deck_name * | string | Name of the deck to add the notes to. |
model_name * | string | Note type (model) name, such as Basic. |
notes * | array | Notes to create (up to 100), each an object of field values keyed by field name. |
findNotes
Search notes with Anki query syntax.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query in Anki query syntax, such as deck:Default or tag:marked. |
notesInfo
Get details for notes.
| Parameter | Type | Description |
|---|---|---|
notes * | array | IDs of the notes to get details for. |
updateNoteFields
Update a note's fields.
| Parameter | Type | Description |
|---|---|---|
fields * | object | Field values to set, keyed by field name. |
note_id * | number | ID of the note to update. |
deleteNotes
Delete the specified notes from the collection; deletion is refused unless confirm is true.
| Parameter | Type | Description |
|---|---|---|
notes * | array | IDs of the notes to delete. |
confirm | boolean | Must be true to confirm the deletion. |
getTags
Get all tags currently in the collection via AnkiConnect.
addTags
Add tags to notes.
| Parameter | Type | Description |
|---|---|---|
notes * | array | IDs of the notes to tag. |
tags * | string | Space-separated tag names to add. |
removeTags
Remove tags from notes.
| Parameter | Type | Description |
|---|---|---|
notes * | array | IDs of the notes to remove tags from. |
tags * | string | Space-separated tag names to remove. |
modelNames
List note types.
modelFieldNames
List field names for a note type.
| Parameter | Type | Description |
|---|---|---|
model_name * | string | Note type (model) name, such as Basic. |
collection_stats
Get aggregated collection statistics.