format_cells
Format multiple Word table cells at once: set shading, bold, italic, alignment, valign, and padding. Targets rows or individual cells, with automatic backup and atomic save.
Instructions
Format table cells in bulk. targets: [{row, cell?}] ({row} alone = whole row); formatting: shading, bold, italic, alignment, valign, padding_pt. 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 |
|---|---|---|---|
| backup | No | ||
| targets | Yes | ||
| file_path | Yes | ||
| formatting | Yes | ||
| table_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||