Study session and scheduling
study_sessionFind due Anki cards and update review state—answer, suspend, unsuspend, reset, or relearn—to run quizzes or adjust scheduling.
Instructions
Find due cards and change review state (answer, suspend, unsuspend, reset, relearn) in the local Anki collection. Use this to run a quiz or adjust scheduling; use manage_flashcards to edit card content and get_analytics for history and statistics.
Operations:
find_due: read-only. Needs query (Anki search syntax, e.g. "deck:Spanish"); returns which matching cards are due now.
check_status: read-only. Needs cardIds; returns due/suspended flags per card.
answer: records reviews, as if answered in Anki. Needs answers: [{ cardId, ease }] where ease 1=Again, 2=Hard, 3=Good, 4=Easy. Affects future scheduling.
suspend / unsuspend: needs cardIds OR query. Suspended cards are excluded from reviews until unsuspended (e.g. pause a whole deck: query 'deck:"Spanish"').
forget: needs cardIds OR query. Resets cards to new, discarding their review progress (destructive).
relearn: needs cardIds OR query. Puts cards back into relearning. With query (Anki search syntax), the server finds the cards and applies the change in chunks, so thousands of cards take one call; it returns the count. dryRun: true returns the match count and sample IDs without writing. A query matching nothing changes nothing.
All writes apply immediately and are not undoable through this tool.
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": {
"operation": "<operation>"
},
"name": "study_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | find_due (required), or suspend/unsuspend/forget/relearn instead of cardIds: Anki search query, e.g. 'deck:"Spanish"' or "tag:verbs is:due". The server finds the cards, so thousands of cards work in one call | |
| dryRun | No | suspend/unsuspend/forget/relearn: report how many cards match (and sample IDs) without changing anything. Rejected for other operations | |
| answers | No | answer: one entry per reviewed card | |
| cardIds | No | check_status (required), or suspend/unsuspend/forget/relearn instead of query: card IDs (not note IDs) | |
| operation | Yes | Which operation to run; see the tool description for required parameters |