Google Sheets gadgets are read-only — could they write too? #87
kei-tenkawa
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Google Docs gadgets can edit their document, but Google Spreadsheet gadgets can only read theirs, and it would be great if they could write too. Agents can analyse a sheet and then have to hand the result back for someone to paste in by hand, which is a shame when the doc equivalent just does it.
The gap looks like it is only in the Sheets side rather than anything structural:
spreadsheets.readonly+drive.metadata.readonly, againstdocumentsfor docs (packages/gatekeeper-google/src/google.ts).sheets-api.tsexposesgetSpreadsheet()andreadRanges()and nothing else, whiledocs-api.tshasbatchUpdate().applyAction/rejectAction/revertActionall throw"Google Sheets is read-only and implements no actions.", andgetAutoApprovableActions()returns[].Everything a write path needs seems to be there already on the docs side —
EDIT_DOCUMENT_ACTION,PendingActionStore, in-order approval, and theinvalidatedReasonhandling for a document that changed underneath a pending edit. Sheets would presumably want the same shape, with the values it is about to overwrite captured sorevertActionhas something to restore.Is the read-only surface a deliberate call (revert being awkward for a large range, maybe), or just not built yet? Would love to see writes land here at some point.
All reactions