insert_table
Insert a table at a specified position in a .docx file with custom rows, columns, and optional cell values.
Instructions
Insert a table at a specific position in the document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .docx file | |
| position | Yes | Block index to insert before (-1 for end) | |
| rows | Yes | Number of rows | |
| cols | Yes | Number of columns | |
| data | No | Optional 2D array of cell values, e.g. [['A1','B1'],['A2','B2']] |