ankiweb_add_note
Add a single flashcard note to AnkiWeb by specifying a deck and field values, with optional note type, tags, and automatic deck creation if missing.
Instructions
Add a single flashcard note to AnkiWeb.
Args:
deck: Target deck name (e.g. "Spanish::Verbs") or numeric deck ID string.
fields: Mapping of note type field names to values (e.g. {"Front": "...", "Back": "..."}
for Basic, or {"Text": "{{c1::Paris}} is the capital of France", "Back Extra": ""}
for Cloze). HTML formatting and MathJax are supported; <img> tags are not.
notetype: Note type name (default "Basic") or ID.
tags: Optional list of tags (no spaces inside individual tags).
create_deck_if_missing: Automatically create deck if it does not yet exist.
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>",
"fields": "<fields>"
},
"name": "ankiweb_add_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes | ||
| tags | No | ||
| fields | Yes | ||
| notetype | No | Basic | |
| create_deck_if_missing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||