Download a shared deck
download_shared_deckDownload an AnkiWeb shared deck as an .apkg file to a chosen directory and get the saved file path. Existing files are preserved by saving new downloads under a numbered name.
Instructions
Download a shared deck's .apkg from AnkiWeb to disk and return where it was saved. An existing file is never replaced: the new one gets a numbered name. Works without an AnkiWeb session until AnkiWeb asks for one, which it does after a few downloads; then the signed-in session is used. via says which one the download went through. AnkiWeb licenses shared decks for personal use only.
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": {
"deck": "<deck>"
},
"name": "download_shared_deck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes | The shared deck's id, or its https://ankiweb.net/shared/info/<id> link. | |
| account | No | Omit unless the user names an AnkiWeb account. Which of the accounts signed in on this machine to act as; a name that is not one is refused with the list. | |
| directory | No | An absolute path to an existing directory. Defaults to the server's own downloads directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | Yes | ||
| deck | Yes | ||
| path | Yes | ||
| bytes | Yes | ||
| filename | Yes |