notes.findEmpty
notes_findEmptyFind empty notes or cards to clean up by criterion—all fields empty, no cards, or all questions empty—optionally filtered by an Anki search query. Returns matching IDs only; no deletion.
Instructions
Find cleanup candidates by an explicit criterion.
No deletion. allFieldsEmpty uses native HTML-aware emptiness; allQuestionsEmpty uses native empty-card generation. Return all matching IDs through normal cursor pagination.
Anki-Connect method notes.findEmpty. Scope: collection. Effect: read. Completion: completed. Undo: none.
Possible errors: collectionUnavailable, internalError, invalidParams, invalidSearch, staleSession.
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": {
"criterion": "<criterion>"
},
"name": "notes_findEmpty"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, 1–1000 (default 100). | |
| query | No | Optional Anki search query restricting the candidates. Default: whole collection. | |
| cursor | No | Continuation token: `nextCursor` from the previous page of the same call. Omit for the first page. Repeat the same query, sort and limit; each cursor is single-use and expires after 10 minutes. `nextCursor: null` means there are no more pages. | |
| 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. | |
| criterion | Yes | What counts as empty: `allFieldsEmpty`, `noCards` or `allQuestionsEmpty`. |