Validate Csv Structure
validate_csv_structureValidates QA or Cloze CSV blocks for correct headers, field counts, raw pipes/newlines, entities, tags, MathJax balance, and BOM before Anki import.
Instructions
Validate the structural integrity of a QA or Cloze CSV block. Checks: header match, column count, raw pipes, raw newlines, HTML entities, forbidden tags, MathJax balance, and UTF-8 BOM. note_type must be 'QA' (7 fields) or 'CL' (6 fields).
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": "validate_csv_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv_text | Yes | ||
| note_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||