Skip to main content
Glama

gui_select_card

Select a specific card by its ID in the Anki MCP server to streamline card management and ensure precise targeting for study or modification tasks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cardIdYesID of the card to select

Implementation Reference

  • Registration of the 'gui_select_card' tool, including input schema (cardId: number) and handler function that delegates to ankiClient.graphical.guiSelectCard and returns success message.
    'gui_select_card', { cardId: z.number().describe('ID of the card to select'), }, async ({ cardId }) => { try { const result = await ankiClient.graphical.guiSelectCard({ card: cardId }); return { content: [ { type: 'text', text: `Successfully selected card ${cardId}. Result: ${result}`, }, ], }; } catch (error) { throw new Error( `Failed to select card: ${error instanceof Error ? error.message : String(error)}` ); } } );
  • The core handler logic for executing the gui_select_card tool: calls Anki graphical API to select card by ID.
    try { const result = await ankiClient.graphical.guiSelectCard({ card: cardId }); return { content: [ { type: 'text', text: `Successfully selected card ${cardId}. Result: ${result}`, }, ], }; } catch (error) { throw new Error( `Failed to select card: ${error instanceof Error ? error.message : String(error)}` ); } } );
  • Input schema validation using Zod: requires cardId as number.
    cardId: z.number().describe('ID of the card to select'), },
  • Reference to 'guiSelectCard' action in the multi-action tool's enum, allowing batch execution including this graphical action.
    'guiSelectCard',

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