add_table
Insert a formatted table with bold headers and standard cell borders into an existing Word document. Append the table at the end of the document.
Instructions
Insert a formatted table into an existing .docx document. The table is appended at the end of the document with bold header row and standard cell borders.
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": {
"filePath": "<filePath>",
"headers": "<headers>",
"rows": "<rows>"
},
"name": "add_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the existing .docx file | |
| headers | Yes | Column header labels (e.g., ["Name", "Role", "Department"]) | |
| rows | Yes | 2D array of table data. Each inner array is one row and must match the number of headers. Example: [["Alice", "Engineer", "Tech"], ["Bob", "Designer", "UX"]] |