notes.createMany
notes_createManyCreate multiple Anki notes in one request, with independent per-note results or atomic all-or-nothing batch validation and insertion.
Instructions
Create notes independently, or as one native atomic collection batch.
atomic=true validates the full set including within-batch duplicates, then uses Collection.add_notes. Any failure is a top-level error with indexed issues and no collection changes. Success keeps the same items result shape. Empty input is a no-op.
Anki-Connect method notes.createMany. Scope: collection. Effect: write. Completion: completed. Undo: perItemOrAtomic.
Possible errors: collectionUnavailable, editorConflict, internalError, invalidParams, notFound, staleSession, validationFailed.
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": {
"notes": "<notes>"
},
"name": "notes_createMany"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | Notes to create, each shaped like the `notes_create` arguments. | |
| atomic | No | true: preflight the whole batch and add it in one transaction with one undo entry (all or nothing). false (default): each item is committed independently and reports its own result or error. | |
| session | No | Optional. Collection session ID: the `session` field returned by `collection_get`. Usually omit it — the server then uses the session current at the time of the call. Pass it to make the call fail with `staleSession` instead of acting on a different profile/collection than the one your IDs, cursors and tokens came from. |