Rename sheet
rename_sheetRename a workbook sheet by its 0-based index and automatically rewrite formulas, named ranges, and validations that reference it so calculated results stay unchanged.
Instructions
Rename a sheet in a session's workbook, found by its 0-based index (see the sheets list from create_session or inspect_model). Formulas, named ranges and validations that reference the sheet are rewritten to the new name, so results don't change; use it rather than add_sheet when you only need a different title. Excel's rules apply: 1-31 characters, none of : \ / ? * [ ], no leading or trailing apostrophe, unique ignoring case; a name that breaks them, or an index past the last sheet, fails with bad_request. Returns {sheet_index, previous_name, sheet_name}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New display name for the sheet | |
| session_id | Yes | Session ID returned by create_session (list_sessions shows the open ones) | |
| sheet_index | Yes | 0-based index of the sheet to rename |