note_updateNote
Modify fields, tags, media, or other properties of an existing note in Anki flashcards. Input requires the note's ID and updated content for targeted revision or enhancement.
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)The handler function `update_note_tool` implements the logic for the 'note_updateNote' tool by calling AnkiConnect's 'updateNote' API. Includes inline schema definition and service-level tool registration.@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)Top-level registration of the note service MCP with prefix 'note', which names the 'updateNote' tool as 'note_updateNote'.await anki_mcp.import_server("note", note_mcp)
- src/anki_mcp/note_service.py:123-128 (schema)Pydantic schema definition for the input parameter 'note' of the update_note_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:6-6 (helper)Import of the helper function anki_call used in the handler.from .common import anki_call