Rewrite a whole Google Doc
replace_google_doc_contentReplace everything in a Google Doc with new text written in markdown. The document keeps its id, sharing and version history (an earlier version can be restored from Google Docs' version history). Confirm with the user first: everything in it is replaced. For a smaller change use append_to_google_doc, replace_text_in_google_doc or replace_google_doc_section.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mailbox": "<mailbox>",
"documentId": "<documentId>",
"content": "<content>"
},
"name": "replace_google_doc_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The whole new text, in markdown | |
| mailbox | Yes | Email address of the connected Gmail/Google Workspace mailbox to act on. Call list_authorized_mailboxes to see available options. | |
| documentId | Yes | The Google Doc's id, from search_gdrive_items or list_gdrive_items |