scheduling.getQueue
scheduling_getQueueReads queued cards in Anki's native scheduler order with remaining counts, respecting the selected deck, limits, and mixing. Use it to see what is due next without changing the collection.
Instructions
Read cards in native scheduler order with remaining counts.
Uses Anki's currently selected deck and respects native limits, mixing and scheduler order. Reading the queue is idempotent; subsequent scheduling changes can change the snapshot.
Anki-Connect method scheduling.getQueue. Scope: collection. Effect: read. Completion: completed. Undo: none.
Possible errors: collectionUnavailable, internalError, invalidParams, staleSession.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scheduling_getQueue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| fetchLimit | No | How many queued cards to return, 1–1000 (default 1). |