Skip to content

feat: add renameTab tool for renaming document tabs#75

Merged
a-bonus merged 1 commit intoa-bonus:mainfrom
elijahr:elijahr/rename-tab
Feb 25, 2026
Merged

feat: add renameTab tool for renaming document tabs#75
a-bonus merged 1 commit intoa-bonus:mainfrom
elijahr:elijahr/rename-tab

Conversation

@elijahr
Copy link
Copy Markdown
Contributor

@elijahr elijahr commented Feb 25, 2026

Summary

Adds a new renameTab tool that renames a tab in a Google Docs document using the updateDocumentTabProperties API. Verifies the tab exists before attempting the rename and returns the old and new title on success.

Changes

  • New: src/tools/docs/renameTab.ts — Tool implementation using batchUpdate with updateDocumentTabProperties.
  • Modified: src/tools/docs/index.ts — Added import and registration.

Parameters

Parameter Type Required Description
documentId string Yes The document ID
tabId string Yes The ID of the tab to rename (use listDocumentTabs to get tab IDs)
newTitle string Yes The new title for the tab

Testing

  • Build passes (tsc with zero errors).
  • Prettier formatting passes.
  • All existing 107 tests continue to pass.

@a-bonus a-bonus merged commit c2b4fe4 into a-bonus:main Feb 25, 2026
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.

2 participants