docs_replace_body
Replace a Google Doc's entire body with plain text, preserving the document's metadata and revision history. Read the current content first, then send the complete new text to overwrite it.
Instructions
Replace a Google Doc's entire body with plain text.
The Doc keeps its id, link, title, sharing, and revision history (the
old body is recoverable from version history in the Docs UI), but
all formatting is flattened — this is for Docs that work as living
text documents, not designed artifacts. Read with docs_read_text
first and send the complete new body; this replaces, it does not merge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||