remove_empty_notes
Deletes empty notes from Anki decks to optimize storage and streamline organization, ensuring only meaningful content is retained.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/notes.ts:355-372 (registration)Registration and handler for the 'remove_empty_notes' MCP tool. The handler calls ankiClient.note.removeEmptyNotes() to remove empty notes and returns a success message.server.tool('remove_empty_notes', {}, async () => { try { await ankiClient.note.removeEmptyNotes(); return { content: [ { type: 'text', text: 'Successfully removed all empty notes from the collection', }, ], }; } catch (error) { throw new Error( `Failed to remove empty notes: ${error instanceof Error ? error.message : String(error)}` ); } });