{"version":"0.43.0","id":"kanvas.flashcards.control","operationId":"kanvas.flashcards.control","title":"flashcards control","requiredInputs":["sessionId","deckId","displayId","action","cardId"],"description":"Control displayed deck: reveal/next/previous/answer/restart. Answer records spoken/typed response for current cardId. exact matches normalized answer/acceptedAnswers, NOT semantics; self needs explicit correct; none is ungraded. Answer reveals, next advances. Supply a stable requestId for safe retries. expectedRevision and expectedDeckRevision are independent optional stale-write guards. Include current cardId even for restart; restart resets the deck and may set mode, ignoring the card identity comparison. Concurrency: expectedRevision, expectedDeckRevision are OPTIONAL stale-write guards. Supplying a stale guard rejects the call; omitting optional guards does not waive authorization or other preconditions. After a conflict, inspect the operation-specific error and read current authorized state before retrying; current-value fields vary by operation.","guidance":"Submit spoken/typed answer for the current card with deck and display revisions. Exact matching is not semantic grading.","inputSchema":{"type":"object","properties":{"sessionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"deckId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"displayId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"expectedDeckRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"requestId":{"description":"Stable ID deduplicates retries; omission creates a fresh ID per call.","type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"action":{"type":"string","enum":["reveal","next","previous","answer","restart"]},"cardId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"response":{"type":"string","minLength":1,"maxLength":4000},"grading":{"default":"exact","type":"string","enum":["exact","self","none"]},"correct":{"type":"boolean"},"mode":{"type":"string","enum":["learn","test"]}},"required":["sessionId","deckId","displayId","action","cardId"],"additionalProperties":false,"examples":[{"sessionId":"session-id","displayId":"display-id","deckId":"deck-id","expectedRevision":1,"expectedDeckRevision":0,"requestId":"answer-1","cardId":"hola","action":"answer","response":"hello","grading":"exact"},{"sessionId":"session-id","displayId":"display-id","deckId":"deck-id","cardId":"hola","action":"restart","requestId":"restart-1"}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"examples":[{"tool":"kanvas_call","arguments":{"operationId":"kanvas.flashcards.control","arguments":{"sessionId":"session-id","displayId":"display-id","deckId":"deck-id","expectedRevision":1,"expectedDeckRevision":0,"requestId":"answer-1","cardId":"hola","action":"answer","response":"hello","grading":"exact"}}},{"tool":"kanvas_call","arguments":{"operationId":"kanvas.flashcards.control","arguments":{"sessionId":"session-id","displayId":"display-id","deckId":"deck-id","cardId":"hola","action":"restart","requestId":"restart-1"}}}],"exampleNotice":"Examples are valid syntax with illustrative IDs and source data. Substitute live authorized IDs/revisions; examples never grant consent."}