Import Anki deck package
import-deck-packagePreview a trusted local .apkg file and import its reviewed contents into the active Anki collection, including note updates, deck presets, and scheduling when present.
Instructions
Previews a trusted local .apkg file and imports its reviewed bytes into the active Anki collection. Anki can update existing Notes and merge Note Types; it imports scheduling and deck presets when present. Preview does not calculate a collection diff. Requires local AnkiConnect v1.
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": {
"localPath": "<localPath>"
},
"name": "import-deck-package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview without exporting a file or importing into Anki. | |
| localPath | Yes | Absolute path to a trusted .apkg inside ANKI_PACKAGE_IMPORT_DIR. | |
| confirmImport | No | Accept the import, including possible updates and learning progress. | |
| expectedImpactHash | No | Hash from the reviewed preview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | ||
| package | Yes | ||
| profile | Yes | ||
| blockers | Yes | ||
| imported | Yes | ||
| warnings | Yes | ||
| impactHash | Yes |