create_chart
Create a chart in a spreadsheet by specifying data range and chart type. Optionally set title, position, and legend placement to visualize data.
Instructions
Create a chart in a spreadsheet
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": {
"spreadsheet_id": "<spreadsheet_id>",
"sheet_id": "<sheet_id>",
"chart_type": "<chart_type>",
"data_range": "<data_range>"
},
"name": "create_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Chart title | |
| position | No | Position of the chart on the sheet (optional) | |
| sheet_id | Yes | The ID of the sheet | |
| chart_type | Yes | Type of chart to create | |
| data_range | Yes | Range containing the data to chart | |
| spreadsheet_id | Yes | The ID of the spreadsheet | |
| legend_position | No | Position of the chart legend (optional, defaults to RIGHT_LEGEND) |