add_chart
Create native, editable Excel charts from a cell range to turn spreadsheet data into column, bar, line, pie, scatter, or area visuals.
Instructions
Add a native, editable Excel chart (column, bar, line, pie, scatter, area) built from a cell range.
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": {
"path": "<path>",
"data_range": "<data_range>"
},
"name": "add_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path, relative to the root folder (or absolute inside it). | |
| sheet | No | Sheet name (or 0-based index). Default: first sheet. | |
| title | No | ||
| anchor | No | Top-left cell where the chart is placed (default: right of the data). | |
| dry_run | No | Preview the change without saving. | |
| stacked | No | ||
| x_title | No | ||
| y_title | No | ||
| chart_type | No | Chart type. | column |
| data_range | Yes | Data incl. header row, e.g. 'B1:D13' (one series per column). | |
| target_sheet | No | Put the chart on another sheet (e.g. 'Dashboard'). | |
| categories_range | No | Labels / X values without header, e.g. 'A2:A13'. |