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
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": {
"table_text": "<table_text>"
},
"name": "analyze_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |