flashdeck

v0.1.0
io.github.CloudCorpRecords/flashdeck Checked 1 day ago Published 1 month ago

Flashcard 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.

ParameterTypeDescription
deckstringDeck name to filter due cards by.
include_answerbooleanWhen true, include each card's answer (back side).

get_cards

Get cards filtered by state and deck.

ParameterTypeDescription
deckstringDeck name to filter cards by.
include_answerbooleanWhen true, include each card's answer (back side).
statestringCard state to filter by, such as new, learning, review, or due.

present_card

Show a card's question/front.

ParameterTypeDescription
card_id *numberID of the card to present.

rate_card

Rate a card (Again/Hard/Good/Easy) and schedule next review.

ParameterTypeDescription
card_id *numberID of the card being rated.
ease *numberEase rating: 1 (Again), 2 (Hard), 3 (Good), or 4 (Easy).

listDecks

List decks, optionally with per-deck statistics.

ParameterTypeDescription
include_statsbooleanWhen true, include per-deck statistics in the result.

deckStats

Get statistics for one deck.

ParameterTypeDescription
deck *stringName of the deck to get statistics for.

createDeck

Create a new deck with the given name, using :: for nested decks such as Parent::Child.

ParameterTypeDescription
deck *stringName of the new deck (use :: for nested decks, such as Parent::Child).

addNote

Create one note.

ParameterTypeDescription
deck_name *stringName of the deck to add the note to.
fields *objectField values for the note, keyed by field name.
model_name *stringNote type (model) name, such as Basic.
tagsarrayTags to apply to the new note.

addNotes

Batch-create up to 100 notes.

ParameterTypeDescription
deck_name *stringName of the deck to add the notes to.
model_name *stringNote type (model) name, such as Basic.
notes *arrayNotes to create (up to 100), each an object of field values keyed by field name.

findNotes

Search notes with Anki query syntax.

ParameterTypeDescription
query *stringSearch query in Anki query syntax, such as deck:Default or tag:marked.

notesInfo

Get details for notes.

ParameterTypeDescription
notes *arrayIDs of the notes to get details for.

updateNoteFields

Update a note's fields.

ParameterTypeDescription
fields *objectField values to set, keyed by field name.
note_id *numberID of the note to update.

deleteNotes

Delete the specified notes from the collection; deletion is refused unless confirm is true.

ParameterTypeDescription
notes *arrayIDs of the notes to delete.
confirmbooleanMust be true to confirm the deletion.

getTags

Get all tags currently in the collection via AnkiConnect.

addTags

Add tags to notes.

ParameterTypeDescription
notes *arrayIDs of the notes to tag.
tags *stringSpace-separated tag names to add.

removeTags

Remove tags from notes.

ParameterTypeDescription
notes *arrayIDs of the notes to remove tags from.
tags *stringSpace-separated tag names to remove.

modelNames

List note types.

modelFieldNames

List field names for a note type.

ParameterTypeDescription
model_name *stringNote type (model) name, such as Basic.

collection_stats

Get aggregated collection statistics.