Skip to content

feat(sheets): add sheets.appendRow write tool#342

Open
rohanaceres wants to merge 4 commits intogemini-cli-extensions:mainfrom
rohanaceres:sheets_appendRow
Open

feat(sheets): add sheets.appendRow write tool#342
rohanaceres wants to merge 4 commits intogemini-cli-extensions:mainfrom
rohanaceres:sheets_appendRow

Conversation

@rohanaceres
Copy link
Copy Markdown

@rohanaceres rohanaceres commented Apr 22, 2026

Summary

  • Adds sheets.appendRow MCP tool to append rows to a Google Sheets spreadsheet
  • Tool is gated behind the sheets write feature group (defaultEnabled: false, requires spreadsheets OAuth scope)
  • Uses USER_ENTERED value input option so formulas and dates are parsed correctly

Test Plan

  • Unit tests added for success case, URL-to-ID extraction, and error handling (SheetsService.test.ts)
  • Run npm run test && npm run lint to verify all checks pass
  • Manually verify appending a row to a spreadsheet returns correct updatedRange, updatedRows, updatedColumns, updatedCells
  • Verify tool is disabled by default and only activates when sheets write feature is enabled

Issue #341

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 22, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new appendRow tool for Google Sheets, enabling the addition of multiple rows to a spreadsheet. The implementation includes the core service logic, tool registration with Zod validation, and unit tests. Review feedback suggests renaming the tool and its associated methods to appendRows to accurately reflect its multi-row capability and recommends broadening the input schema and TypeScript types to support numbers, booleans, and null values in addition to strings.

Comment thread workspace-server/src/features/feature-config.ts Outdated
Comment thread workspace-server/src/index.ts Outdated
Comment thread workspace-server/src/services/SheetsService.ts Outdated
Comment thread workspace-server/src/__tests__/services/SheetsService.test.ts Outdated
Implements the ability to append rows to a Google Sheets spreadsheet
via the MCP sheets.appendRow tool. The tool is gated behind the
sheets write feature group (disabled by default, scoped to
spreadsheets OAuth scope).
rohanaceres and others added 3 commits April 22, 2026 09:48
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Incorporates review feedback: plural name better reflects that multiple
rows can be appended at once, and values now accepts numbers, booleans,
and nulls in addition to strings.
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.

1 participant