Get Table
get_tableReads an entire Word table, returning every cell's text, merge info, and column widths. Handles nested tables; use for extracting full table data before editing.
Instructions
Read one table in full: every cell's text, the merge map, and column widths. table_index is 0-based among body-level tables in document order. has_merges=false returns rows of strings; has_merges=true returns {text, grid_span, vmerge} cells. For a nested table pass nested={row, cell, index} addressing the host cell (index picks among several, default 0). Write with set_cells; shade with format_cells; widths and repeat-header set_table_properties; reshape with modify_table_structure (media-forms pack). Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nested | No | ||
| file_path | Yes | ||
| table_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||