googGitHub

Suggested edits and anchored comments in Docs

Edit other people's documents the way you would in the Docs editor. Changes land as suggestions for the owner to accept or reject, and comments highlight the text they discuss.

v0.2.15
claude
✻ Welcome to Claude Code
cwd: ~/work
>
Q3 report
docs.google.com/document/d/1Q3rPt7Lx0
A
Q3 report
We are pleased to be able to report that revenue grew to $4.2M, up 18% on Q2.
Churn fell to 2.1% after the onboarding redesign shipped in August.

Write edits as suggestions

--suggest on docs text insert and docs text replace writes the change in Suggesting mode. Inserted text shows in color, replaced text is struck through, and each change gets a card in the margin. An account with comment access can suggest.

$goog docs text replace DOCUMENT_ID --find "lazy dog" --replace "sleepy cat" --suggest
$goog docs text insert DOCUMENT_ID "Reviewed draft. " --at "before-text:The quick" --suggest

Review suggestions

List open suggestions, including ones made in the browser, then accept, reject or withdraw them one at a time or all at once.

$goog docs suggestions DOCUMENT_ID --open
$goog docs suggestion-accept DOCUMENT_ID --suggestion-id SUGGESTION_ID
$goog docs suggestion-reject DOCUMENT_ID --all

Comments anchored to text

docs comment-create highlights the quoted text and puts the comment card beside it, like a comment added in the editor. Pick the anchor by quote, index range, entry, or page and line.

$goog docs comment-create DOCUMENT_ID --text "Can you confirm this?" --quote "$4.2M" --mention reviewer@example.com
$goog docs comment-create DOCUMENT_ID --deleted "Prices were listed here." --text "Moved to the appendix." --quote "Pricing moved to the appendix."
Downloads and checksums on GitHub