Manage scheduling and review state
manage_schedulingFind due Anki cards, quiz yourself, and change review state (answer, suspend, unsuspend, reset, relearn, reposition) to control what appears next.
Instructions
Run a quiz and change review state (answer, suspend, unsuspend, reset, relearn, reposition new cards) in the local Anki collection. Use this to get due card IDs and act on them; use manage_decks get_stats for due counts, get_analytics for progress and history, and manage_flashcards to edit card content.
Operations:
find_due: read-only; the IDs of matching cards due now, for running a quiz (not counts). Needs query (Anki search syntax, e.g. "deck:Spanish").
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.
reposition: sets the order new cards are introduced. Needs cardIds (in the order you want; e.g. interleave topics or put exam topics first) OR query (keeps their current relative order). Card i gets position start + i*step; start defaults to the front of the affected decks' new queue, step to 1. shift: true pushes other new cards down to make room. Cards that aren't new (or sit in a filtered deck) are skipped and listed, never rescheduled. Changes sync. Positions only matter when the deck gathers new cards by "deck" or "ascending_position" (see manage_decks set_display_order); the reply warns otherwise. Check the result with manage_flashcards find include ["state"] (#n = position). 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 (for reposition, each card's planned position) 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": "manage_scheduling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | No | reposition: gap between consecutive positions (default 1) | |
| query | No | find_due (required), or suspend/unsuspend/forget/relearn/reposition 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 | |
| shift | No | reposition: push other new cards at or after start down so positions don't collide (like Anki's "Shift position of existing cards"). Default false: ties are broken by card ID | |
| start | No | reposition: position of the first card. Default: the lowest position among new cards in the affected decks (the front of the queue) | |
| dryRun | No | suspend/unsuspend/forget/relearn: report how many cards match (and sample IDs) without changing anything. reposition: list each card's planned position without writing. Rejected for other operations | |
| answers | No | answer: one entry per reviewed card | |
| cardIds | No | check_status (required), or suspend/unsuspend/forget/relearn/reposition instead of query: card IDs (not note IDs). For reposition, the order of this array is the new queue order | |
| operation | Yes | Which operation to run; see the tool description for required parameters |