Skip to main content
Glama

gui_edit_note

Edit Anki notes directly using the specified note ID, enabling quick updates and modifications to study content within the Anki MCP server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteIdYesID of the note to edit

Implementation Reference

  • The MCP tool registration for 'gui_edit_note', including input schema (noteId: number) and handler function. The handler calls AnkiConnect's graphical.guiEditNote to open the GUI edit dialog for the specified note.
    server.tool( 'gui_edit_note', { noteId: z.number().describe('ID of the note to edit'), }, async ({ noteId }) => { try { await ankiClient.graphical.guiEditNote({ note: noteId }); return { content: [ { type: 'text', text: `Successfully opened edit dialog for note ${noteId}`, }, ], }; } catch (error) { throw new Error( `Failed to edit note: ${error instanceof Error ? error.message : String(error)}` ); } } );
  • Input schema for the gui_edit_note tool using Zod: requires a numeric noteId.
    { noteId: z.number().describe('ID of the note to edit'), },
  • Registration of the 'gui_edit_note' tool name with the MCP server.
    server.tool( 'gui_edit_note',

Other Tools

Related Tools

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/arielbk/anki-mcp'

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