Replace a tag on selected notes
replace-note-tagReplace one whole tag on selected Anki note IDs by previewing the change first, then confirming to write; notes without the source tag are skipped.
Instructions
Previews replacing one whole tag on explicit Note IDs. Notes without the source tag are skipped. Does not recursively rename child tags, change unrelated tags, or apply to the whole collection. Requires AnkiConnect v1 and explicit confirmation of the reviewed preview to write.
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": {
"noteIds": "<noteIds>",
"from": "<from>",
"to": "<to>"
},
"name": "replace-note-tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | One replacement tag name. Anki may reuse registered casing. | |
| from | Yes | Full existing tag name to replace. Not a prefix or search query. | |
| dryRun | No | Preview without modifying Anki | |
| noteIds | Yes | Explicit selection of up to 100 Note IDs. No collection-wide option. | |
| confirmReplacement | No | ||
| expectedImpactHash | No | Hash from the reviewed replacement preview |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| dryRun | Yes | ||
| applied | Yes | ||
| changes | Yes | ||
| blockers | Yes | ||
| verified | Yes | ||
| warnings | Yes | ||
| impactHash | Yes | ||
| missingNoteIds | Yes | ||
| skippedNoteIds | Yes |