Skip to main content

Tool surface

Both use the existing Google Drive connection. Edits land in the same Doc, so its link and sharing stay the same. To read a Doc’s content without editing it, google_drive_read_file returns shorter Markdown.

How edits work

google_docs_update sends Google Docs API batchUpdate requests. They run in order, and either all apply or none do.
  • Read first. Positions come from google_docs_read, and the update must name the revision_id it was planned against. If someone edited the Doc in between, Google rejects the whole batch instead of writing in the wrong place; the agent reads again and retries. A batch of only find-and-replace (replaceAllText) needs no revision.
  • Images from the conversation. An image an agent made or received in the conversation (PNG, JPEG or GIF) can go into the Doc by its attachment path. Aster gives Google a link to it that expires after 10 minutes.
  • Large edits from a script. An agent can write the requests to a file in its workspace and pass requests_file instead of typing them into the call.

Limits and safety

Both tools follow the organization’s Google Drive folder limit. With a read-only Drive connection, google_docs_read works and google_docs_update is refused before anything is sent to Google. Neither tool deletes a Doc or changes its sharing.