excel_add_chart
Writes chart data to a specific cell in an Excel worksheet, including categories and series, so you can create the chart manually in Excel.
Instructions
写入图表数据到指定位置(exceljs 不支持直接创建图表对象,数据写入后可在 Excel 中手动创建图表)
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>",
"chartType": "<chartType>",
"categories": "<categories>",
"series": "<series>"
},
"name": "excel_add_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | 图表标题 | |
| series | Yes | 数据系列 | |
| position | No | 图表位置,如 F2 | |
| chartType | Yes | 图表类型 | |
| sheetName | Yes | 工作表名称 | |
| categories | Yes | 分类标签 | |
| workbookId | Yes | 工作簿ID |