Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
No arguments |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
deck_deckNamesAndIds | Gets the complete list of deck names and their respective IDs. Returns a dictionary mapping deck names to their IDs. |
deck_getDeckConfig | Gets the configuration group object for the given deck name. Returns the deck configuration object. |
deck_deckNames | Gets the complete list of deck names for the current user. Returns a list of deck names. |
deck_createDeck | Creates a new empty deck. Will not overwrite an existing deck with the same name. Returns the ID of the created deck. |
deck_deleteDecks | Deletes decks with the given names. The 'cardsToo' argument must be specified and set to true. |
deck_changeDeck | Moves cards with the given IDs to a different deck, creating the deck if it doesn't exist yet. |
deck_saveDeckConfig | Saves the given configuration group. Returns true on success, false otherwise. |
note_findNotes | Returns an array of note IDs for a given Anki search query. |
note_notesInfo | Returns a list of objects containing information for each note ID provided. |
note_getNoteTags | Gets the tags for a specific note ID. Returns a list of tags. |
note_addNote | Creates a new note using the given deck, model, fields, and tags. Returns the ID of the created note or null if the note could not be created. |
note_updateNoteFields | Modifies the fields of an existing note. |
note_deleteNotes | Deletes notes with the given IDs. |
note_addNotes | Creates multiple notes. See 'addNote' for the structure of each note object in the list. Returns a list of new note IDs, or null for notes that couldn't be created. |
note_addTags | Adds tags to the specified notes. |
note_removeTags | Removes tags from the specified notes. |
note_updateNote | Modifies the fields and/or tags of an existing note. |
card_findCards | Returns an array of card IDs for a given Anki search query. |
card_cardsInfo | Returns a list of objects containing information for each card ID provided. |
card_cardsToNotes | Returns an unordered array of note IDs for the given card IDs. |
card_areSuspended | Returns an array indicating whether each given card is suspended. Each item is boolean or null if the card doesn't exist. |
card_cardsModTime | Returns modification time for each card ID provided. Result is a list of objects with 'cardId' and 'modTime' (timestamp). |
card_suspended | Checks if a single card is suspended by its ID. Returns true if suspended, false otherwise. |
card_suspend | Suspends the specified cards. Returns true on success. |
card_unsuspend | Unsuspends the specified cards. Returns true on success. |
card_setSpecificValueOfCard | Sets specific values of a single card. Use with caution. Returns list of booleans indicating success for each key. |
model_modelNamesAndIds | Gets the complete list of model (note type) names and their IDs. Returns a dictionary mapping model names to IDs. |
model_findModelsByName | Gets a list of model definitions for the provided model names. |
model_modelFieldNames | Gets the list of field names for the provided model name. |
model_modelTemplates | Returns an object indicating the template content for each card of the specified model. |
model_modelStyling | Gets the CSS styling for the provided model name. Returns an object containing the 'css' field. |
model_createModel | Creates a new model (note type). Returns the created model object. |
model_updateModelTemplates | Modifies the templates of an existing model by name. |
model_updateModelStyling | Modifies the CSS styling of an existing model by name. |
model_modelFieldAdd | Adds a new field to an existing model. |
model_modelFieldRemove | Removes a field from an existing model. |
media_retrieveMediaFile | Retrieves the base64-encoded contents of the specified media file. Returns the base64 string or false if not found. |
media_getMediaFilesNames | Gets the names of media files matching the glob pattern. Returns a list of filenames. |
media_storeMediaFile | Stores a media file in Anki's media folder. Provide one of 'data' (base64), 'path', or 'url'. Returns the stored filename or false on error. |
media_deleteMediaFile | Deletes the specified file from Anki's media folder. |