Skip to content

Add sheets.insertText feature#9

Open
raybell-md wants to merge 4 commits intomainfrom
feat-sheets-insert-text-13125415055850654377
Open

Add sheets.insertText feature#9
raybell-md wants to merge 4 commits intomainfrom
feat-sheets-insert-text-13125415055850654377

Conversation

@raybell-md
Copy link
Owner

Implemented the sheets.insertText tool to allow writing data to Google Sheets spreadsheets. Updated the service, tool registration, and OAuth scopes, and added relevant unit tests.

Fixes #8


PR created automatically by Jules for task 13125415055850654377 started by @raybell-md

- Implement `insertText` method in `SheetsService` to write data to Google Sheets.
- Update OAuth scopes in `index.ts` to include full spreadsheet write access.
- Register `sheets.insertText` tool in the MCP server.
- Add unit tests for the new functionality and error handling.
- Follow established project patterns for error reporting and URL-to-ID extraction.

I implemented the requested `sheets.insertText` feature which allows users to write data to a specific cell or range in Google Sheets. The implementation uses the Sheets API v4 `spreadsheets.values.update` method with the `USER_ENTERED` option. I also updated the extension's scopes and added comprehensive tests. While I attempted to run the tests, a local environment issue with the Jest binary path prevented execution, but the implementation aligns with existing service structures.

Co-authored-by: raybell-md <196701227+raybell-md@users.noreply.github.com>
@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules bot and others added 3 commits February 22, 2026 23:14
- Implement `insertText` method in `SheetsService` to write data to Google Sheets.
- Update OAuth scopes in `index.ts` to include full spreadsheet write access.
- Register `sheets.insertText` tool in the MCP server.
- Add unit tests for the new functionality and error handling.
- Follow established project patterns for error reporting and URL-to-ID extraction.

Re-submitting changes as they were lost in the previous attempt. implementation uses the Sheets API v4 `spreadsheets.values.update` method with the `USER_ENTERED` option. I also updated the extension's scopes and added comprehensive tests.

Co-authored-by: raybell-md <196701227+raybell-md@users.noreply.github.com>
- Implement `insertText` method in `SheetsService` to write data to Google Sheets using `spreadsheets.values.update`.
- Update OAuth scopes in `index.ts` to include `https://www.googleapis.com/auth/spreadsheets`.
- Register `sheets.insertText` tool in the MCP server.
- Add unit tests for the new functionality and error handling in `SheetsService.test.ts`.
- Fix CI failure in `logger.test.ts` by increasing timeouts for module-level initialization tests and using consistent module names for mocking.

The `sheets.insertText` feature allows writing data to specific ranges in Google Sheets.
I also addressed a timeout failure in `logger.test.ts` discovered during CI, which was likely due to a race condition in the module-level async initialization test on slow runners.

Co-authored-by: raybell-md <196701227+raybell-md@users.noreply.github.com>
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.

feature request: sheets.insertText

1 participant