sheets_add_chart
Add a chart to a Google Sheets spreadsheet by specifying chart type and data range. Supports bar, line, area, column, scatter, combo, and stepped area charts.
Instructions
Add a chart. Types: BAR, LINE, AREA, COLUMN, SCATTER, COMBO, STEPPED_AREA.
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": "sheets_add_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| sheet_id | Yes | ||
| chart_type | Yes | ||
| data_range | Yes | ||
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |