Cards Compile Drafts
cards_compile_draftsCompile structured CardDraft JSON into Anki-compliant QA and Cloze CSV blocks, applying deterministic HTML escaping, cloze renumbering, ID purging, and table conversion.
Instructions
Compile a list of structured CardDraft JSON objects into AnkiMBR-compliant QA and Cloze CSV blocks. Applies deterministic HTML escaping, sequential cloze renumbering (c1..cN), ID leak purging, markdown table conversion, and pipe-delimiter escaping. Accepts a JSON string of a list or {'cards': [...]}. Returns qa_csv, cloze_csv, and compilation stats.
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": {
"drafts_json": "<drafts_json>"
},
"name": "cards_compile_drafts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drafts_json | Yes | ||
| auto_renumber | No | ||
| auto_purge_ids | No | ||
| default_campo_estudo | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||