wps_wpp_add_table
Add a table to a PowerPoint slide. Returns a shape_index used to locate and write into individual table cells with the companion tool wps_wpp_write_table_cell.
Instructions
在幻灯片内插入表格。返回的 shape_index 用于后续 wps_wpp_write_table_cell 定位该表格(幻灯片表格没有像文档那样的全局 Tables 集合,必须按 slide_index+shape_index 定位)。
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": {
"rows": "<rows>",
"cols": "<cols>"
},
"name": "wps_wpp_add_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Y 坐标(默认 120) | |
| cols | Yes | 列数 | |
| left | No | X 坐标(默认 60) | |
| rows | Yes | 行数 | |
| width | No | 宽度(默认 600) | |
| height | No | 高度(默认 300) | |
| slide_index | No | 幻灯片序号(默认当前页) |