deck_saveDeckConfig
Save a deck configuration in Anki for organized flashcard management, using the provided configuration object with a required 'id' field to ensure proper updates.
Instructions
Saves the given configuration group. Returns true on success, false otherwise.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | The deck configuration object to save. Must include an 'id'. |
Implementation Reference
- src/anki_mcp/deck_service.py:79-92 (handler)Handler function for the 'deck_saveDeckConfig' tool. Calls AnkiConnect's 'saveDeckConfig' API with the provided config.@deck_mcp.tool( name="saveDeckConfig", description="Saves the given configuration group. Returns true on success, false otherwise.", ) async def save_deck_config_tool( config: Annotated[ Dict[str, Any], Field( description="The deck configuration object to save. Must include an 'id'." ), ], ) -> bool: return await anki_call("saveDeckConfig", config=config)
- src/anki_mcp/__init__.py:23-23 (registration)Registers the deck_mcp tools into the main anki_mcp server with 'deck' prefix, making 'saveDeckConfig' available as 'deck_saveDeckConfig'.await anki_mcp.import_server("deck", deck_mcp)
- src/anki_mcp/deck_service.py:79-92 (schema)Pydantic schema for input 'config' as Dict[str, Any] with description requiring 'id', output bool.@deck_mcp.tool( name="saveDeckConfig", description="Saves the given configuration group. Returns true on success, false otherwise.", ) async def save_deck_config_tool( config: Annotated[ Dict[str, Any], Field( description="The deck configuration object to save. Must include an 'id'." ), ], ) -> bool: return await anki_call("saveDeckConfig", config=config)