set_cells
Write multiple table cells in a single call, replacing separate per-cell edits. Supports tracked changes by author and reports cells written, with merge-aware behavior for live documents.
Instructions
Write many table cells in ONE call: edits = [{row, cell, text}]. Use
this for any multi-cell edit instead of per-cell calls; set_cells_block
writes a contiguous 2D block instead. track records tracked changes by
author; the result reports cells_written. Live mode refuses
vertically merged tables (the file-based path is merge-aware).
Auto-backup in file mode: prev/anchor slots in .ks4w-backups
(backup=False skips rotation only); atomic validated save. Documents
open in Word are edited live.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | auto | |
| edits | Yes | ||
| track | No | ||
| author | No | Claude | |
| backup | No | ||
| file_path | Yes | ||
| table_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||