scheduling.setDueDate
scheduling_setDueDateSet Anki card due dates using native day or range syntax, including today, tomorrow, random ranges, and optional interval updates.
Instructions
Set due dates using Anki native days/range syntax.
Anki-Connect method scheduling.setDueDate. Scope: collection. Effect: write. Completion: completed. Undo: perItem.
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": {
"cardIds": "<cardIds>",
"days": "<days>"
},
"name": "scheduling_setDueDate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Anki due-date syntax: `0` = today, `1` = tomorrow, `3-7` = random day in the range; append `!` (e.g. `5!`) to also set the interval. | |
| cardIds | Yes | Card IDs (decimal string, e.g. "1700000000001"). | |
| 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. |