update_card
Modify Anki flashcards by marking reviews, updating content fields, or adjusting tags to maintain accurate and current study materials.
Instructions
Update a card/note in Anki. Supports 4 operations: (1) 'answer': mark a card as reviewed with ease 1-4, (2) 'update_note': update note fields, tags, and media, (3) 'update_fields': update only fields and media, (4) 'update_tags': update only tags. Returns success message with operation details.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Required. Operation type: 'answer' (requires cardId + ease), 'update_note' (requires noteId + fields, optional tags/audio/picture), 'update_fields' (requires noteId + fields, optional audio/picture), 'update_tags' (requires noteId + tags array) | |
| cardId | No | Card ID - REQUIRED for 'answer' operation only. Use get_card to find card IDs. | |
| noteId | No | Note ID - REQUIRED for 'update_note', 'update_fields', and 'update_tags' operations. Use get_card to find note IDs. | |
| ease | No | Ease score for 'answer' operation. REQUIRED when operation='answer'. Values: 1 (Again/Hard), 2 (Hard), 3 (Good), 4 (Easy). | |
| fields | No | Field names and values to update. REQUIRED for 'update_note' and 'update_fields'. Format: {"FieldName": "value"}. Example: {"Front": "Question text", "Back": "Answer text"}. Use HTML formatting (not markdown). | |
| tags | No | Array of tags. REQUIRED for 'update_tags', optional for 'update_note'. REPLACES all existing tags. Example: ["vocabulary", "important", "lesson-1"]. | |
| audio | No | Optional audio files for 'update_note' and 'update_fields'. Each item needs filename, path (URL or local file path), and target field names array. | |
| picture | No | Optional image files for 'update_note' and 'update_fields'. Each item needs filename, path (URL or local file path), and target field names array. |