Skip to main content
Glama

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
NameRequiredDescriptionDefault
noteYesNote object to update. Must include 'id'. Can include 'fields', 'tags', 'audio', 'video', 'picture'.

Implementation Reference

  • 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)
  • 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)
  • 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'." ), ],
  • Import of the helper function anki_call used in the handler.
    from .common import anki_call

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ujisati/anki-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server