Skip to content

initial support for tabs#22

Merged
a-bonus merged 2 commits intoa-bonus:mainfrom
themightychris:feat/tab-support
Oct 29, 2025
Merged

initial support for tabs#22
a-bonus merged 2 commits intoa-bonus:mainfrom
themightychris:feat/tab-support

Conversation

@themightychris
Copy link
Copy Markdown
Contributor

Adds a new listDocumentTabs tool and adds an optional tabId parameter to the readGoogleDoc tool

This is just initial support for reading, much more work to do to enable all the other tools to work across tabs

a-bonus pushed a commit that referenced this pull request Oct 29, 2025
…fety

This commit extends the initial tabs support from PR #22 with the following improvements:

**Core Enhancements:**
- Add tabId support to write operations (appendToGoogleDoc, insertText, deleteRange)
- Improve type safety by replacing 'any' types with proper TypeScript interfaces
- Create TabWithLevel interface for better type checking
- Fix getTabTextLength to handle tables in addition to paragraphs

**Documentation:**
- Add comprehensive tabs documentation to README.md
- Include usage examples for tab operations
- Document which tools support the tabId parameter

**Technical Improvements:**
- Use proper docs_v1.Schema$Tab and docs_v1.Schema$DocumentTab types
- Add tab validation in write operations
- Improve error messages for tab-related operations
- Maintain backward compatibility for documents without tabs

This builds upon the foundational work in PR #22, completing the tabs feature
by adding full read/write support with robust type safety.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Chris Alfano <chris@jarv.us>
@a-bonus a-bonus merged commit 865f04d into a-bonus:main Oct 29, 2025
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