note_updateNote
Modify fields and tags of an existing Anki flashcard note to update content or organization.
Instructions
Modifies the fields and/or tags of an existing note.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | Note object to update. Must include 'id'. Can include 'fields', 'tags', 'audio', 'video', 'picture'. |
Implementation Reference
- src/anki_mcp/note_service.py:118-130 (handler)Handler function executing the tool logic for note_updateNote, calling AnkiConnect's updateNote API.@note_mcp.tool( name="updateNote", description="Modifies the fields and/or tags of an existing note.", ) async def update_note_tool( note: Annotated[ Dict[str, Any], Field( description="Note object to update. Must include 'id'. Can include 'fields', 'tags', 'audio', 'video', 'picture'." ), ], ) -> None: return await anki_call("updateNote", note=note)
- src/anki_mcp/__init__.py:24-24 (registration)Registers the note_mcp (AnkiNoteService) tools with 'note_' prefix into the main anki_mcp, making 'updateNote' available as 'note_updateNote'.await anki_mcp.import_server("note", note_mcp)
- src/anki_mcp/note_service.py:123-128 (schema)Pydantic schema/validation for the input parameter 'note' of the tool.note: Annotated[ Dict[str, Any], Field( description="Note object to update. Must include 'id'. Can include 'fields', 'tags', 'audio', 'video', 'picture'." ), ],
- src/anki_mcp/note_service.py:8-8 (registration)Creates the FastMCP instance for note service tools where note_updateNote (as updateNote) is defined.note_mcp = FastMCP(name="AnkiNoteService")