Add Native Chart
add_native_chartCreate native, editable PowerPoint charts with custom categories, series data, chart types, legends, gridlines, and data labels to add visual data directly to slides.
Instructions
Create a native, editable PowerPoint chart.
Supports COLUMN_CLUSTERED, LINE, PIE, and BAR_CLUSTERED charts with custom series data, legend positioning, gridline toggling, and data labels.
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": {
"slide_index": "<slide_index>",
"chart_type": "<chart_type>",
"categories": "<categories>",
"series": "<series>"
},
"name": "add_native_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Top coordinate in inches | |
| left | No | Left coordinate in inches | |
| title | No | Optional chart header title | |
| width | No | Chart width in inches | |
| height | No | Chart height in inches | |
| series | Yes | List of data series with series name and numerical values | |
| auto_save | No | Whether to automatically save changes to file_path on disk | |
| file_path | No | Path to presentation file within sandbox | |
| categories | Yes | List of category names along X-axis / slices | |
| chart_type | Yes | Chart type: COLUMN_CLUSTERED, LINE, PIE, or BAR_CLUSTERED | |
| has_legend | No | Whether to render chart legend | |
| slide_index | Yes | 0-based index of slide to place chart on | |
| show_gridlines | No | Whether to show major gridlines on value axis | |
| legend_position | No | Legend position: top, bottom, left, right | right |
| presentation_id | No | In-memory presentation ID | |
| show_data_labels | No | Whether to display numeric data labels on chart points/bars |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||