create_chart
Create a native chart in Google Sheets from a data range, using the first column as the domain. Supports various chart types including column, bar, line, pie, and more.
Instructions
Create a native chart using the first source column as its domain.
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>",
"source_range": "<source_range>",
"anchor_cell": "<anchor_cell>"
},
"name": "create_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| chart_type | No | COLUMN | |
| anchor_cell | Yes | ||
| header_rows | No | ||
| source_range | Yes | ||
| width_pixels | No | ||
| height_pixels | No | ||
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||