Convert a deck to Markdown
convert_deck_to_markdownConvert local .apkg Anki decks into Flashcard Markdown files the assistant can read, placing card images under .images/ and leaving existing files untouched.
Instructions
Convert a local .apkg, such as one download_shared_deck saved, to a Flashcard Markdown file the assistant can read. It goes in a new folder named after the package, with the images its cards use under .images/; nothing existing is replaced. Only basic front-and-back notes convert: cloze and other note types are counted in diagnostics, and review history is not kept.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | An absolute path to the .apkg. | |
| title | No | The deck's title. Defaults to the filename, with underscores as spaces. | |
| directory | No | An absolute path to an existing directory to create the deck's folder in. Defaults to the .apkg's own directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cards | Yes | ||
| title | Yes | ||
| directory | Yes | ||
| mediaFiles | Yes | ||
| diagnostics | Yes | ||
| markdownPath | Yes | ||
| diagnosticCount | Yes |