Update note fields
update-note-fieldsPreview and apply partial field patches to Anki notes; dry runs show raw HTML changes, while applying requires expected field hashes and validates the batch before writing.
Instructions
Previews partial field patches by default. To apply, set dryRun to false and provide expectedFieldHashes for every submitted field from get-note-details or a dry run. Validates the complete batch before writing and verifies saved values. Each submitted field replaces its complete value, including HTML.
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": {
"updates": "<updates>"
},
"name": "update-note-fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview bounded raw HTML changes and full-value hashes without modifying Anki. Set false to apply with expectedFieldHashes. | |
| updates | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | ||
| applied | Yes | ||
| changes | Yes | ||
| verified | Yes | ||
| updatedNotes | Yes | ||
| missingNoteIds | Yes | ||
| rejectedUpdates | Yes | ||
| unchangedNoteIds | Yes | ||
| changedFieldCount | Yes |