Google Docs update document

docs-google__update_document

Access

Requires a project integration connection for docs-google.

Call type: Can change resources.

Arguments

FieldTypeRequiredDescription and constraints
documentIdstringYesGoogle Docs document ID
requestsvalue[]NoAdvanced batchUpdate operations. To append plain text, use appendText instead.
writeControlobjectNoOptional Google Docs write control
appendTextstringNoText to append at the document end. Use either appendText or requests.

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "docs-google__update_document",
    "arguments": {
      "documentId": "example"
    }
  }
}

Result

No output schema is published for this tool. The input contract does not define its return fields. Inspect the MCP response content and isError; do not assume a fixed object shape. See the docs-google integration reference for provider setup and tool context.

Full schemas

json
{
  "type": "object",
  "properties": {
    "documentId": {
      "type": "string",
      "description": "Google Docs document ID"
    },
    "requests": {
      "type": "array",
      "description": "Advanced batchUpdate operations. To append plain text, use appendText instead."
    },
    "writeControl": {
      "type": "object",
      "description": "Optional Google Docs write control"
    },
    "appendText": {
      "type": "string",
      "description": "Text to append at the document end. Use either appendText or requests."
    }
  },
  "required": [
    "documentId"
  ],
  "description": "Arguments for the docs-google__update_document tool."
}