update_table_column_name_tool
Update column names in a Google Sheets table by specifying column indices and new names. Rename multiple columns at once with matching lists.
Instructions
Update column names in a table.
This tool updates existing column names in a table by their index.
The number of column indices must match the number of new column names.
Args:
spreadsheet_name: Name of the spreadsheet
sheet_name: Name of the sheet containing the table
table_name: Name of the table to update column names in
column_indices: List of column indices to update (0-based)
new_column_names: List of new column names
Returns:
JSON string with success status and update detailsInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spreadsheet_name | Yes | The name of the Google Spreadsheet | |
| sheet_name | Yes | The name of the sheet containing the table | |
| table_name | Yes | Name of the table to update column names in | |
| column_indices | Yes | List of column indices to update (0-based) | |
| new_column_names | Yes | List of new column names (must match column_indices count) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |