OAuth

📄 Google Docs

Read, create and update Docs as Markdown.

What you can do

Setup

agentio gdocs profile add

gdocs asks for full Google Drive access, so update can rewrite documents agentio did not create. A profile signed in with an earlier version must sign in again: agentio profile reauth gdocs <profile>.

Editing from Markdown

agentio gdocs get 1A2bCdEf... --output doc.md
# edit doc.md
agentio gdocs update 1A2bCdEf... --file doc.md

update replaces the whole document. It refuses, unless you add --force, when that would lose something Markdown cannot carry: extra tabs, pending suggestions, or open comments. To change one part without touching the rest, read the indices with structure and send requests with batch.

Markdown fidelity

Google converts the Markdown in both directions: agentio does not. What comes through:

What is lost or changed:

Command reference

Related changelog entries