store_media_file
Store an image or audio file in Anki's media folder to reference it in notes. Accepts a local path, URL, or base64 data.
Instructions
Store a media file (image/audio) in the collection's media folder so it can be referenced from a note, e.g. '[sound:word.mp3]' or ''. Provide exactly one source: a local 'path', a 'url' to download, or base64 'data_b64'. Returns the stored filename.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| path | No | ||
| data_b64 | No | ||
| filename | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||