Rewrite one section of a Google Doc
replace_google_doc_sectionReplace the text under one heading of a Google Doc, up to the next heading of the same or a higher level. The heading itself stays. Plain text: each line becomes a paragraph. If the heading isn't found, nothing changes and the document's headings are listed.
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>",
"heading": "<heading>",
"content": "<content>"
},
"name": "replace_google_doc_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The section's new text | |
| heading | Yes | The heading's text, as it appears in the document | |
| 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 |