Skip to content

Fix addComment tool by adding required fields parameter#20

Merged
a-bonus merged 1 commit intomainfrom
claude/review-repo-issues-011CUKP18tbc9SYGb5Dc9Njj
Oct 21, 2025
Merged

Fix addComment tool by adding required fields parameter#20
a-bonus merged 1 commit intomainfrom
claude/review-repo-issues-011CUKP18tbc9SYGb5Dc9Njj

Conversation

@a-bonus
Copy link
Copy Markdown
Owner

@a-bonus a-bonus commented Oct 21, 2025

Resolves issue #16 where the addComment tool was failing with error "The 'fields' parameter is required for this method."

The Google Drive API v3 requires the 'fields' parameter for comments.create() calls to specify which fields should be returned in the response. This was missing from the implementation, causing all addComment operations to fail.

Added fields parameter with the same field set used in other comment-related operations (listComments, getComment) for consistency:

  • id
  • content
  • quotedFileContent
  • author
  • createdTime
  • resolved

This brings addComment in line with replyToComment and other API operations which already include the required fields parameter.

🤖 Generated with Claude Code

Resolves issue #16 where the addComment tool was failing with error "The 'fields' parameter is required for this method."

The Google Drive API v3 requires the 'fields' parameter for comments.create() calls to specify which fields should be returned in the response. This was missing from the implementation, causing all addComment operations to fail.

Added fields parameter with the same field set used in other comment-related operations (listComments, getComment) for consistency:
- id
- content
- quotedFileContent
- author
- createdTime
- resolved

This brings addComment in line with replyToComment and other API operations which already include the required fields parameter.

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

Co-Authored-By: Claude <noreply@anthropic.com>
@a-bonus a-bonus merged commit a90e81c into main Oct 21, 2025
@a-bonus a-bonus deleted the claude/review-repo-issues-011CUKP18tbc9SYGb5Dc9Njj branch October 21, 2025 00:43
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