Skip to content

feat: add deleteSheet and renameSheet tools#72

Merged
a-bonus merged 2 commits intoa-bonus:mainfrom
a-pedraza:feat/sheet-management
Feb 23, 2026
Merged

feat: add deleteSheet and renameSheet tools#72
a-bonus merged 2 commits intoa-bonus:mainfrom
a-pedraza:feat/sheet-management

Conversation

@a-pedraza
Copy link

Summary

Two new sheet management tools for deleting and renaming sheet tabs.

Closes #71

Changes

  • New: src/tools/sheets/deleteSheet.ts — Deletes a sheet using DeleteSheetRequest
  • New: src/tools/sheets/renameSheet.ts — Renames a sheet using UpdateSheetPropertiesRequest
  • Modified: src/tools/sheets/index.ts — Added imports and registrations

No changes to helper files.

Parameters

deleteSheet

Parameter Type Required Description
spreadsheetId string Yes The spreadsheet ID
sheetId number (int) Yes Numeric sheet ID to delete

renameSheet

Parameter Type Required Description
spreadsheetId string Yes The spreadsheet ID
sheetId number (int) Yes Numeric sheet ID to rename
newName string Yes New name for the sheet

Testing

Both tools tested against a live Google Sheets spreadsheet:

  • deleteSheet: successfully removes a tab, verified with getSpreadsheetInfo
  • renameSheet: successfully renames a tab, verified with getSpreadsheetInfo
  • Build passes (tsc with zero errors)

Andres Pedraza and others added 2 commits February 22, 2026 18:11
Two new sheet management tools:

- deleteSheet: removes a sheet (tab) from a spreadsheet using
  spreadsheets.batchUpdate with DeleteSheetRequest
- renameSheet: renames a sheet (tab) using spreadsheets.batchUpdate
  with UpdateSheetPropertiesRequest

Both require the numeric sheetId (available via getSpreadsheetInfo).
@a-bonus a-bonus merged commit 222b4e6 into a-bonus:main Feb 23, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add deleteSheet and renameSheet tools

2 participants