analyze_table
Analyzes column positions in a grid table by scanning '+' markers and validating '|' alignment, using wcwidth for correct spacing of Thai, Pali, and CJK characters.
Instructions
Analyze column positions in a grid table (+---+).
Uses display-width space (via wcwidth) for position comparison, so Thai/Pali combining marks (พิทุ, สระบน/ล่าง) are handled correctly.
Scans '+' markers in border lines to define column boundaries, then validates '|' alignment in data rows.
Args: table_text: A +---+ grid table as raw text
Returns: Analysis report: column positions, alignment validation, parsed cells
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |