Clone note type
clone-note-typeCreate a new independent note type by copying a source's ordered fields, card template HTML, and shared CSS. Use it to duplicate a card design without copying notes or cards.
Instructions
Creates an independent note type with the source's ordered fields, card template HTML, and shared CSS. In AnkiConnect v1 it preserves the Browser sort field and requires the reviewed clone hash before applying. Does not copy notes or cards.
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": {
"sourceModelName": "<sourceModelName>",
"targetModelName": "<targetModelName>"
},
"name": "clone-note-type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | When true, validate and preview the clone without creating a note type | |
| isCloze | No | Optional normal/Cloze override. By default the tool detects {{cloze:...}} filters in the source templates. | |
| sourceModelName | Yes | Existing note type whose ordered fields, templates, CSS, and v1 sort field should be copied | |
| targetModelName | Yes | Unique name for the new independent note type | |
| expectedCloneHash | No | Hash returned by the reviewed clone preview; required for apply in v1. | |
| expectedSourceDesignHash | No | Source design hash required for legacy apply; v1 apply requires expectedCloneHash. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | ||
| created | Yes | ||
| isCloze | Yes | ||
| cloneHash | Yes | ||
| validation | Yes | ||
| cloneSummary | Yes | ||
| createdNoteType | Yes | ||
| isClozeDetected | Yes | ||
| sourceModelName | Yes | ||
| targetModelName | Yes | ||
| sourceDesignHash | Yes | SHA-256 hash of the current CSS and card templates |