Skip to content

create, edit and trash drive files, and read and write spreadsheet ranges - #92

Merged
hkonsti merged 3 commits into
hkonsti/google-8-gmailfrom
hkonsti/google-9-drive-writes
Oct 15, 2026
Merged

hkonsti merged 3 commits into
hkonsti/google-8-gmailfrom
hkonsti/google-9-drive-writes

Conversation

@hkonsti

@hkonsti hkonsti commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Google's files collection now writes: Create files makes folders, documents (uploaded as Markdown) and spreadsheets (uploaded as CSV) in My Drive, a folder or a shared drive, and appends rows to a tab under its headers; Edit files renames files and tabs, replaces a document's content whole (dropping its comments and suggestions, as the catalog and docs say) and changes a row only in the cells written differently; Move files to Trash trashes files and folders, never files.delete. A new run-only ranges collection, like the databases' queries, reads (read-only, Read files) and writes (Edit files) a range in A1 notation as CSV, taking a spreadsheet's id or link, the range checked against a strict pattern before it reaches Google. The files kind select is no longer system, so a create says what to make and an edit refuses to change it; every files action takes the drive scope, and google-connector.ts now runs a command on the collection it was run on, since emails and files both have trash.

Verified live against a real account: a folder "Personal Agent Proxy test 2026-10-13" made in My Drive; inside it a Doc from Markdown (read back as Markdown, table and curly quote intact) and a Sheet from CSV; a row appended under the headers and edited; a range written through the spreadsheet's link with a formula (answered evaluated) and read back through its id; the Doc renamed and its content replaced; then the folder moved to Trash through the trash command. Refusals (unknown header, a bad tab, a spreadsheet or Recent as parent) came back as validation errors, Google's own words for the range. A token downscoped to drive alone passed Google's scope check on Sheets values.update and batchUpdate and Drive files.update and media upload, where gmail.send alone got 403.

Stack: on #91.


Open workspace in Conductor

@hkonsti
hkonsti added this pull request to stack #88 October 13, 2026 22:59
@hkonsti
hkonsti force-pushed the hkonsti/google-9-drive-writes branch from ececd25 to 184f59a Compare October 14, 2026 00:49
@hkonsti
hkonsti force-pushed the hkonsti/google-9-drive-writes branch from 184f59a to 70648bb Compare October 14, 2026 17:29
@hkonsti
hkonsti force-pushed the hkonsti/google-9-drive-writes branch from 70648bb to 51dfae6 Compare October 14, 2026 18:14
@hkonsti
hkonsti force-pushed the hkonsti/google-9-drive-writes branch from 51dfae6 to b6cc7b1 Compare October 15, 2026 00:09
…s last rows from column A, rename without uploading content as it was read, open and rename a document too large to export, cap range reads, empty a cell with "", keep shared drives out of edits and trash, and upload text as utf-8
…a range with $ in it and a tab named in any letters, turn down a row made with a name, and say each thing once in agents.md
@hkonsti
hkonsti force-pushed the hkonsti/google-9-drive-writes branch from b6cc7b1 to 07fcb21 Compare October 15, 2026 00:20
@hkonsti
hkonsti merged commit 0a519a9 into main Oct 15, 2026
4 checks passed
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