Update cards
update_cardsUse this when the user asks to fix, reword, correct or retag cards they already have. Changes 1-500 cards atomically: give card_id and only the fields to change (front_html, back_html, tags); the rest stay, cards keep their schedule and review history, and restore_cards can undo the edit. Read list_cards first; for a shared source copy its sibling_card_ids, one edit per source. The note type stays; an edit that would remove cards is refused (use delete_cards). Follow create_cards' field notes.
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": {
"cards": "<cards>"
},
"name": "update_cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cards | Yes | On both sides keep the material's own terms, names and numbers. Write what plain text loses as HTML (10<sup>5</sup>, not 105; H<sub>2</sub>O; <br> between lines), and write each text in one script, as the material or the user writes it, never switching alphabets inside a word. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | How to reply when the cards are already on screen; on new cards, also where else the user can study them. | |
| created | Yes | ||
| updated | Yes | ||
| card_ids | Yes | ||
| source_ids | Yes | ||
| deck_totals | Yes | ||
| revision_ids | Yes | One per source in source_ids: the earlier version of that source this edit kept, which restore_cards can put back; null when the edit changed nothing. |