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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"position": "<position>",
"rows": "<rows>",
"cols": "<cols>"
},
"name": "insert_table"
}
}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']] |