gui_show_question
Display a question in the user interface for Anki MCP, enabling interactive prompts and responses within the application.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/graphical.ts:379-395 (handler)The handler function for the 'gui_show_question' tool. It invokes ankiClient.graphical.guiShowQuestion() to display the question side of the current card in Anki's reviewer and returns a textual success response with the result or throws an error on failure.server.tool('gui_show_question', {}, async () => { try { const result = await ankiClient.graphical.guiShowQuestion(); return { content: [ { type: 'text', text: `Successfully showed question. Result: ${result}`, }, ], }; } catch (error) { throw new Error( `Failed to show question: ${error instanceof Error ? error.message : String(error)}` ); } });
- src/tools/graphical.ts:379-395 (registration)Registers the 'gui_show_question' MCP tool on the server with no input schema ({}). The inline handler calls the underlying Anki graphical API.server.tool('gui_show_question', {}, async () => { try { const result = await ankiClient.graphical.guiShowQuestion(); return { content: [ { type: 'text', text: `Successfully showed question. Result: ${result}`, }, ], }; } catch (error) { throw new Error( `Failed to show question: ${error instanceof Error ? error.message : String(error)}` ); } });