update_doc
Update a Google Doc's content by appending, prepending, or replacing text using its document ID.
Instructions
Update content in a Google Doc.
Args: document_id: ID of the document text: Text to add mode: "append" (end), "prepend" (start), or "replace"
Returns: Update confirmation
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": {
"document_id": "<document_id>",
"text": "<text>"
},
"name": "update_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | append | |
| text | Yes | ||
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||