apply_table_style
Apply TableGrid, PlainTable, or BandedTable style to a chosen table in a Word document. Injects missing style definitions and safely saves with backup support.
Instructions
Apply a named table style: TableGrid (bordered) | PlainTable | BandedTable (alternating shading); definitions are injected when missing. 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 |
|---|---|---|---|
| style | No | TableGrid | |
| backup | No | ||
| file_path | Yes | ||
| banded_rows | No | ||
| table_index | Yes | ||
| first_row_header | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||