insert_columns
Insert grid columns before a specified position in a Word table. Handles merged cells by widening them, supports custom widths, creates automatic backups, and refuses documents open in Word.
Instructions
Insert grid columns before position at (at = column count appends).
Merge-aware: inserting inside a merged cell widens it. 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 |
|---|---|---|---|
| at | Yes | ||
| count | No | ||
| backup | No | ||
| width_pt | No | ||
| file_path | Yes | ||
| table_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||