Import notes from file
anki_import_fileImport a .txt, .tsv, or .csv file into an existing Anki deck, mapping each row to a note with columns, headers, and per-row tag rules.
Instructions
Import a .txt/.tsv/.csv file into an existing deck, one note per row.
Columns map to fields: from columns (e.g. ["Front", "Back", "tags"]; "" skips a column, "tags" means
space-separated tags), else from a header row, else in the note type's field order. has_header: None = auto
(first row equals field names). Anki "Notes in Plain Text" exports (#separator:/#columns: lines) work.
tags: added to every row. tag_rules: per-row tags, e.g.
[{"field": "Front", "starts_with": "GRAMMAR:", "tag": "grammar"}] (also "contains" or "regex";
"case_sensitive": false by default). default_tag: tag for rows that match no rule.
Duplicate handling, model default and dry_run work like anki_add_notes.
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": {
"path": "<path>",
"deck": "<deck>"
},
"name": "anki_import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes | ||
| path | Yes | ||
| tags | No | ||
| model | No | ||
| columns | No | ||
| dry_run | No | ||
| delimiter | No | auto | |
| tag_rules | No | ||
| allow_html | No | ||
| has_header | No | ||
| default_tag | No | ||
| duplicate_scope | No | collection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||