Batch Auto Fix
batch_auto_fixRepairs and sanitizes an entire draft CSV block for Anki: fixes unescaped pipes, newlines, clinical inequalities, bare ampersands, markdown, and unclosed tags, then returns the corrected CSV with applied fixes and residual diagnostics.
Instructions
Automatically repair and sanitize an entire draft CSV block (QA or Cloze). Enforces canonical header, repairs unescaped pipes and newlines in long free-text fields, escapes clinical inequalities (< 10, > 50) and bare '&', converts basic markdown, and auto-closes simple unclosed tags. Returns fixed_csv, fixes_applied, and residual diagnostics.
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": {
"csv_text": "<csv_text>",
"note_type": "<note_type>"
},
"name": "batch_auto_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv_text | Yes | ||
| note_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||