Replace literal text in Anki note type designs
replace-note-type-textPreviews and applies case-sensitive literal replacements in selected Note Types' front HTML, back HTML, or CSS, without changing note field values.
Instructions
Previews and validates a case-sensitive literal replacement in explicitly selected Note Types' front HTML, back HTML, and/or CSS. Does not replace Note field values. Applying requires AnkiConnect v1, a current impact hash, and explicit confirmation.
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": {
"noteTypeIds": "<noteTypeIds>",
"targets": "<targets>",
"find": "<find>",
"replace": "<replace>"
},
"name": "replace-note-type-text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Literal case-sensitive search text, not a regular expression. | |
| dryRun | No | Preview without changing Anki. | |
| replace | Yes | Literal replacement text. An empty string removes the matches. | |
| targets | Yes | Choose question (front HTML), answer (back HTML), and/or css. | |
| noteTypeIds | Yes | Explicit selection of up to 20 Note Type IDs from list-note-types. | |
| confirmReplacement | No | ||
| expectedImpactHash | No | Hash from the reviewed replacement preview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | ||
| applied | Yes | ||
| changes | Yes | ||
| profile | Yes | ||
| blockers | Yes | ||
| verified | Yes | ||
| warnings | Yes | ||
| impactHash | Yes | ||
| validation | Yes | ||
| occurrenceCount | Yes | ||
| changedTypeCount | Yes |