Search notes
search-notesSearches Anki notes using native query syntax and returns paginated results via cursor or offset. Use it to locate notes by deck, tag, note type, or field text.
Instructions
Searches notes with Anki's native query syntax. In v1 mode, defaults to a native page with a continuation cursor. Request pagination: offset for an exact total or a numeric position.
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": {
"query": "<query>"
},
"name": "search-notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | Native Anki search query, for example "deck:German tag:A1", "note:Basic", or "Front:*Hund*". An empty query searches all notes. | |
| cursor | No | Use the previous nextCursor with the same query and limit. Omit it on the first cursor page. | |
| offset | No | Supplying an offset, even 0, selects offset mode unless pagination is explicit. | |
| pagination | No | Defaults to cursor when v1 is enabled and no offset is supplied. Use offset for an exact total or a numeric position. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| query | Yes | ||
| total | Yes | Exact count in offset mode; null in cursor mode. | |
| offset | Yes | Offset used in legacy mode; null in cursor mode. | |
| hasMore | Yes | ||
| returned | Yes | ||
| nextCursor | No | Present in cursor mode. Null means the search is complete. | |
| missingNoteIds | Yes |