sheets_add_chart
Add a column, bar, line, area, pie, or scatter chart to a spreadsheet tab using data from a chosen range and columns.
Instructions
Add a chart (column, bar, line, area, pie, scatter) built from a data range on a tab.
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": {
"spreadsheetId": "<spreadsheetId>",
"tab": "<tab>",
"startRow": "<startRow>",
"endRow": "<endRow>",
"domainCol": "<domainCol>",
"seriesCols": "<seriesCols>"
},
"name": "sheets_add_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | Yes | ||
| title | No | ||
| endRow | Yes | exclusive | |
| startRow | Yes | 0-based header row | |
| chartType | No | COLUMN | |
| domainCol | Yes | 0-based column with labels/x values | |
| seriesCols | Yes | 0-based columns with values | |
| spreadsheetId | Yes |