Skip to content

feat: add addTab tool for creating new tabs in Google Docs#89

Merged
a-bonus merged 1 commit intoa-bonus:mainfrom
sameergdogg:add-tab-tool
Mar 21, 2026
Merged

feat: add addTab tool for creating new tabs in Google Docs#89
a-bonus merged 1 commit intoa-bonus:mainfrom
sameergdogg:add-tab-tool

Conversation

@sameergdogg
Copy link
Copy Markdown
Contributor

Summary

  • Adds a new addTab tool that creates tabs in Google Docs documents using the batchUpdate API's addDocumentTab request
  • Supports optional parameters: title, parentTabId (for nesting under existing tabs), index (zero-based position), and iconEmoji
  • Validates parentTabId exists before attempting to create the tab
  • Follows existing patterns from renameTab.ts for error handling and code structure

Test plan

  • Passes npm run format:check (Prettier)
  • Passes npx tsc --noEmit (TypeScript type check)
  • Passes npm test (124 tests passing)
  • Manually tested: created a new Google Doc and successfully added a tab with a custom title

🤖 Generated with Claude Code

Adds a new `addTab` tool that creates tabs in Google Docs documents
using the batchUpdate API's `addDocumentTab` request. Supports optional
title, parentTabId (for nesting), index (positioning), and iconEmoji.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@a-bonus a-bonus merged commit e5c4504 into a-bonus:main Mar 21, 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