Delete cards
delete_cardsUse this when the user asks to delete specific cards. Takes 1-500 card IDs (from list_cards) with one confirmation for the batch: the first call deletes nothing and returns the exact set and a confirm_token; ask the user once, then repeat the same card_ids with confirm_token. Tokens last ten minutes and survive reconnects; a completed retry returns its original result. For a whole deck use delete_deck; to stop studying a deck but keep it, archive_deck.
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": {
"card_ids": "<card_ids>"
},
"name": "delete_cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_ids | Yes | The cards to delete, 1-500 IDs from list_cards, e.g. [1042, 1043]. | |
| confirm_token | No | Omit on the first call; pass back the token the first call returned, after the user has confirmed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| deleted | Yes | ||
| pending | Yes | ||
| card_ids | Yes | ||
| expires_ms | Yes | ||
| deck_totals | Yes | ||
| confirm_token | No | ||
| cards_affected | Yes | ||
| decks_affected | Yes | A deck deletion: the decks that go, by name, the deck first and then the decks under it. Empty for a deletion of cards. |