files_update_chart
Updates an existing native chart by id. Only the provided (non-null) fields change; everything else is preserved. To MOVE the chart set position; to RESIZE set width_cells/height_cells. Set chart_name to rename (display name, not the title); set title to '' to remove the title. series_columns replaces the plotted series (0-based column indexes within the data range, category column excluded). Requires edit permission. Signature: files_update_chart(file_uuid, chart_id, sheet?, chart_type?, data_range?, chart_name?, title?, position?, width_cells?, height_cells?, transpose?, first_row_headers?, first_col_labels?, x_column?, series_columns?).
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": {
"file_uuid": "<file_uuid>",
"chart_id": "<chart_id>"
},
"name": "files_update_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | No | Sheet name (defaults to the first sheet). | |
| title | No | New title; '' removes it. Null keeps current. | |
| chart_id | Yes | Id of the chart to update (from files_add_chart or the sheet context). | |
| position | No | New top-left anchor cell (A1). Null keeps current. | |
| x_column | No | 0-based category column index. Null keeps current. | |
| file_uuid | Yes | ||
| transpose | No | ||
| chart_name | No | New display name. Null keeps current. | |
| chart_type | No | New chart type. Null keeps current. | |
| data_range | No | New A1 data range. Null keeps current. | |
| width_cells | No | New width in columns (min 2). Null keeps current. | |
| height_cells | No | New height in rows (min 4). Null keeps current. | |
| series_columns | No | 0-based series column indexes to plot. Null keeps current. | |
| first_col_labels | No | ||
| first_row_headers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chart_id | Yes | ||
| file_uuid | Yes | ||
| sequence_number | Yes |