cards.setSuspended
cards_setSuspendedSuspend or unsuspend Anki cards by ID. Idempotent: re-running the same request is safe, and changed=false reports cards already in the requested state.
Instructions
Suspend or restore cards idempotently.
changed=false means already in requested state. Process repeated mutation IDs once and repeat their result.
Anki-Connect method cards.setSuspended. Scope: collection. Effect: write. Completion: completed. Undo: perItem.
Possible errors: collectionUnavailable, editorConflict, internalError, invalidParams, notFound, 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": {
"ids": "<ids>",
"suspended": "<suspended>"
},
"name": "cards_setSuspended"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | 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. | |
| suspended | Yes | true to suspend, false to unsuspend. |