Skip to main content
Glama

gui_select_note

Select a specific note in the Anki MCP server by providing its unique ID, enabling precise navigation and management of study materials.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteIdYesID of the note to select

Implementation Reference

  • Full MCP tool registration for 'gui_select_note', including input schema (noteId: number) and handler function that calls ankiClient.graphical.guiSelectNote to select the note in Anki's GUI browser.
    server.tool( 'gui_select_note', { noteId: z.number().describe('ID of the note to select'), }, async ({ noteId }) => { try { const result = await ankiClient.graphical.guiSelectNote({ note: noteId }); return { content: [ { type: 'text', text: `Successfully selected note ${noteId}. Result: ${result}`, }, ], }; } catch (error) { throw new Error( `Failed to select note: ${error instanceof Error ? error.message : String(error)}` ); } } );
  • The core handler logic for the gui_select_note tool, which performs the GUI note selection via the Anki client library and returns a success message.
    async ({ noteId }) => { try { const result = await ankiClient.graphical.guiSelectNote({ note: noteId }); return { content: [ { type: 'text', text: `Successfully selected note ${noteId}. Result: ${result}`, }, ], }; } catch (error) { throw new Error( `Failed to select note: ${error instanceof Error ? error.message : String(error)}` ); } }
  • Zod input schema defining the required 'noteId' parameter as a number.
    { noteId: z.number().describe('ID of the note to select'), },
  • 'guiSelectNote' listed as a supported AnkiConnect action in the 'multi' tool's action enum, allowing batch execution.
    'guiSelectNote',

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