Add note
add_noteCreates one Anki note with a specified deck, note type, and field values, optionally attaching media, and returns the new note ID.
Instructions
Creates one note in the given deck using the given model (note type) and field values. Anki then generates one or more cards from it. Returns the new note ID. Fails (tool error) if the deck or model does not exist, a field name is wrong, the first field is empty, or the note is a duplicate. Tip: check with can_add_notes first; for several notes prefer add_notes. Attach images/audio/video with picture/audio/video: each item's source is an http(s) URL or an absolute path on the computer running Anki, and the file is appended to the listed fields. Fails before creating anything if a file cannot be stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags to put on the note, one tag per array item (no spaces inside a tag). | |
| audio | No | Audio files to store and play from the given fields (appended as [sound:...]). | |
| video | No | Video files to store and play from the given fields (appended as [sound:...]). | |
| fields | Yes | Field values keyed by field name, e.g. {"Front": "...", "Back": "..."}. Names must match the model exactly (see model_field_names). Values may contain HTML. | |
| picture | No | Images to store and show in the given fields (appended as <img>). | |
| deckName | Yes | Exact name of an existing deck (see deck_names). Use "Parent::Child" for subdecks. | |
| modelName | Yes | Exact name of the note type/model, e.g. "Basic" (see model_names). |