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
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | Yes | ID of the note to edit |
Implementation Reference
- src/tools/graphical.ts:222-244 (handler)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)}` ); } } );
- src/tools/graphical.ts:224-226 (schema)Input schema for the gui_edit_note tool using Zod: requires a numeric noteId.{ noteId: z.number().describe('ID of the note to edit'), },
- src/tools/graphical.ts:222-223 (registration)Registration of the 'gui_edit_note' tool name with the MCP server.server.tool( 'gui_edit_note',