add_table_row
Insert a new row into a Word document table. Indicate the file path, table index, row data, and an optional position for insertion.
Instructions
向表格中添加新行。
Args: file_path: 文档路径 table_index: 表格索引 (0-based) row_data: 新行的数据列表 position: 插入位置 (0-based),不指定则添加到末尾
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>",
"table_index": "<table_index>",
"row_data": "<row_data>"
},
"name": "add_table_row"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | ||
| row_data | Yes | ||
| file_path | Yes | ||
| table_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |