word_insert_table
Insert a new table after a specified paragraph in a Word document, with optional initial cell text and change tracking.
Instructions
Insert a new table after a given paraId, optionally seeded with cell text
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>",
"after_para_id": "<after_para_id>",
"rows": "<rows>",
"cols": "<cols>"
},
"name": "word_insert_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | Yes | Number of columns | |
| data | No | Initial cell text, as rows of column values (default: empty cells) | |
| rows | Yes | Number of rows | |
| file_path | Yes | Absolute path to the .docx file | |
| after_para_id | Yes | w14:paraId of the paragraph to insert the table after | |
| track_changes | No | Record this edit as a tracked change (default: true) |