advanced.cards.update
advanced_cards_updateUpdate validated expert scheduling metadata on a specified Anki card, including interval, ease, repetitions, lapses, remaining steps, FSRS memory, or custom data, and reject inconsistent edits.
Instructions
Edit validated expert scheduling metadata through native card persistence.
No id/noteId/deckId/template/queue/type/due/mod/usn writes. Moves, due changes and transitions use domain commands. Reject inconsistent coupled-state edits instead of inferring omitted state. Capability detection may restrict writable properties.
Anki-Connect method advanced.cards.update. Scope: collection. Effect: advancedWrite. Completion: completed. Undo: single.
Possible errors: collectionUnavailable, editorConflict, internalError, invalidParams, notFound, staleSession, unsupportedCapability, 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": {
"cardId": "<cardId>",
"patch": "<patch>"
},
"name": "advanced_cards_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | Expert scheduling fields to set: {intervalDays?, sm2EasePermille?, repetitions?, lapses?, remainingSteps?, fsrsMemory?, customData?}. | |
| cardId | Yes | Card ID (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. |