gui_deck_browser
Browse and manage Anki flashcard decks directly within the Anki MCP server, enabling quick access and organization of study materials.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/graphical.ts:152-169 (registration)Registration and inline handler for the MCP tool 'gui_deck_browser'. This code registers the tool with the MCP server using server.tool(), defining an empty input schema ({}), and an async handler that calls ankiClient.graphical.guiDeckBrowser() to open Anki's deck browser GUI, returning a success message or throwing an error.// Tool: Open the deck browser server.tool('gui_deck_browser', {}, async () => { try { await ankiClient.graphical.guiDeckBrowser(); return { content: [ { type: 'text', text: 'Successfully opened deck browser', }, ], }; } catch (error) { throw new Error( `Failed to open deck browser: ${error instanceof Error ? error.message : String(error)}` ); } });
- src/tools/miscellaneous.ts:265-265 (helper)Reference to 'guiDeckBrowser' in the enum of allowed AnkiConnect actions for the 'multi' tool, allowing indirect execution of the underlying AnkiConnect action via batch operations.'guiDeckBrowser',
- src/utils/ankiClient.ts:3-3 (helper)The ankiClient instance used by the handler, which provides the graphical.guiDeckBrowser() method wrapping the AnkiConnect API.export const ankiClient = new YankiConnect();