notes.update
notes_updateApply field edits and replace the tag set of one Anki note in a single native update, preserving fields not included.
Instructions
Apply fields and tags together in one native note update.
Anki-Connect method notes.update. Scope: collection. Effect: write. Completion: completed. Undo: single.
Possible errors: collectionUnavailable, editorConflict, internalError, invalidParams, notFound, staleSession, validationFailed.
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": {
"id": "<id>",
"patch": "<patch>"
},
"name": "notes_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Note ID (decimal string, e.g. "1700000000001"). | |
| patch | Yes | Changes to apply: {fields?, tags?}. `fields` merges by field name (other fields are kept); `tags` replaces the whole tag set. Must not be empty. | |
| 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. |