update_card_preview
Preview changes to a Mochi flashcard before applying them, showing differences between current and updated content and tags for user confirmation.
Instructions
Preview changes to a card with diff. IMPORTANT: After calling this, you MUST show the diff to the user and ask "Do you want to apply this change?" WAIT for explicit confirmation before calling apply_update_card.
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>",
"content": "<content>"
},
"name": "update_card_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cardId | Yes | Card ID to update | |
| content | Yes | New markdown content | |
| tags | No | New tags (replaces existing) |