Skip to content

docs: document Google API limitations and improve error messages#26

Merged
a-bonus merged 1 commit intoa-bonus:mainfrom
ratsch:docs/api-limitations
Nov 29, 2025
Merged

docs: document Google API limitations and improve error messages#26
a-bonus merged 1 commit intoa-bonus:mainfrom
ratsch:docs/api-limitations

Conversation

@ratsch
Copy link
Copy Markdown
Contributor

@ratsch ratsch commented Nov 29, 2025

Summary

Documents known Google API limitations and improves error messages to help users understand and troubleshoot issues. These limitations are inherent to Google's APIs, not bugs in our implementation.

Changes

README Updates

Added "Known Limitations" section documenting:

  • Comment Anchoring: Comments created via addComment tool appear in "All Comments" list but are not visibly anchored to text in the UI (shows "original content deleted"). This is a Drive API v3 limitation.
  • Comment Resolution: The resolveComment tool attempts to mark comments as resolved, but the status may not persist in Google Docs UI due to Drive API v3 limitations.
  • Converted Documents: Some Google Docs converted from other formats (especially Word) may not support all Docs API operations.

Tool Description Updates

  • Updated addComment description to explain anchoring limitation
  • Updated resolveComment description to explain persistence limitation and recommend manual resolution when needed

Error Message Improvements

Enhanced readGoogleDoc error handling:

  • Added detailed error logging with full API response data
  • Include error codes in user-facing messages
  • Better context for debugging (e.g., "Failed to read doc: This operation is not supported for this document (Code: 400)")

Testing

  • ✅ Built successfully with TypeScript
  • ✅ Documentation is clear and accurate
  • ✅ Error messages tested with various failure scenarios
  • ✅ No linter errors

Non-Breaking Changes

✅ Documentation and error message improvements only - no behavior changes

- Add 'Known Limitations' section to README documenting:
  - Comment anchoring limitations (Drive API v3)
  - Comment resolution limitations
  - Converted document limitations
- Update addComment tool description to explain anchoring limitation
- Update resolveComment tool description to explain persistence limitation
- Improve readGoogleDoc error messages with detailed API error info
@a-bonus a-bonus merged commit 4cea751 into a-bonus:main Nov 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