import_table
Import data into Word tables from CSV, JSON, or row lists. Create a new table or overwrite an existing one with shape validation and auto-backup.
Instructions
Fill a table from data: a .csv path, a .json path (export_table's form or a bare row list), or an inline list of lists. Without table_index a NEW table is created (at_end/after_anchor, default end; has_header bolds and repeats the first row). With table_index the existing table's cell texts are OVERWRITTEN in place: data must exactly match rows x grid-columns (refused otherwise, listing both shapes); merged cells take their value at the anchor position; values in merge-covered positions are refused. Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| at_end | No | ||
| backup | No | ||
| file_path | Yes | ||
| has_header | No | ||
| table_index | No | ||
| after_anchor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||