Skip to content

fix: pass valueRenderOption through to Google Sheets API#66

Merged
a-bonus merged 1 commit intoa-bonus:mainfrom
a-pedraza:fix/valueRenderOption-passthrough
Feb 23, 2026
Merged

fix: pass valueRenderOption through to Google Sheets API#66
a-bonus merged 1 commit intoa-bonus:mainfrom
a-pedraza:fix/valueRenderOption-passthrough

Conversation

@a-pedraza
Copy link
Copy Markdown

Summary

  • Fixes the readSpreadsheet tool silently ignoring the valueRenderOption parameter
  • Adds the parameter to the readRange() helper and forwards it to sheets.spreadsheets.values.get()
  • All existing tests pass, formatting verified with Prettier

Fixes #65

Changes

File Change
src/googleSheetsApiHelpers.ts Added optional valueRenderOption param to readRange(), forwarded to API call
src/tools/sheets/readSpreadsheet.ts Passed args.valueRenderOption through to readRange()

Test plan

  • npm test — 107 tests pass
  • npm run format:check — clean
  • npm run build — compiles without errors
  • Manual verification: readSpreadsheet with valueRenderOption: "FORMULA" now returns formula strings instead of computed values

The readSpreadsheet tool accepted a valueRenderOption parameter but
never forwarded it to the underlying API call. This meant that
requesting FORMULA mode still returned computed values instead of
formula strings.

- Add valueRenderOption parameter to readRange() helper
- Pass args.valueRenderOption from the tool to the helper
- Forward it to sheets.spreadsheets.values.get()

Fixes a-bonus#65
@a-bonus a-bonus merged commit 7163dd4 into a-bonus:main Feb 23, 2026
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.

readSpreadsheet ignores valueRenderOption parameter

2 participants