store_media_file
Store an image or audio file into Anki's media folder for use in flashcards. Provide 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>"
},
"name": "store_media_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| path | No | ||
| data_b64 | No | ||
| filename | Yes | ||
| delete_existing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||