excel_add_chart
Create a chart from a worksheet data range and place it at a target cell in an Excel workbook. Specify chart type, title, and dimensions to visualize spreadsheet data.
Instructions
Create chart from data
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": {
"filename": "<filename>",
"worksheet": "<worksheet>",
"dataStartCell": "<dataStartCell>",
"dataEndCell": "<dataEndCell>",
"chartType": "<chartType>",
"targetCell": "<targetCell>"
},
"name": "excel_add_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Chart title | |
| width | No | Width in pixels | |
| height | No | Height in pixels | |
| filename | Yes | Workbook name | |
| chartType | Yes | Chart type | |
| worksheet | Yes | Worksheet name | |
| targetCell | Yes | Placement cell (e.g., F1) | |
| dataEndCell | Yes | Data end (e.g., D10) | |
| dataStartCell | Yes | Data start (e.g., A1) |