media_storeMediaFile
Store media files in Anki's media folder using base64 data, local path, or URL. Returns the filename or false on error. Supports deleting existing files with the same name.
Instructions
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.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | No | Base64-encoded file content. | |
deleteExisting | No | Whether to delete an existing file with the same name. Default is true. | |
filename | Yes | The desired filename in Anki's media collection. | |
path | No | Absolute local path to the file. | |
url | No | URL to download the file from. |