excel_write_data
Populate Excel worksheets with user-defined headers and data rows, supporting optional styling, filters, and fixed header rows.
Instructions
写入表格数据
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": {
"workbookId": "<workbookId>",
"sheetName": "<sheetName>",
"headers": "<headers>",
"rows": "<rows>"
},
"name": "excel_write_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | 数据行 | |
| style | No | 表格样式 | |
| headers | Yes | 表头 | |
| sheetName | Yes | 工作表名称 | |
| startCell | No | 起始单元格,默认A1 | |
| autoFilter | No | 是否添加筛选 | |
| workbookId | Yes | 工作簿ID | |
| freezeHeader | No | 是否冻结首行 |