Skip to main content

Docs Insert Text

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEgoogle.docs_insert_text
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: google-2026.07.12.2
  • Descriptor hash: 052473b33f25474a0c8c690216ae1453d08ff8e5e34ed9eee432beb2bf0e2596

Use this Google Docs write tool to insert text at a document index. It changes the target document and returns the batchUpdate response. It creates or updates Google provider state and requires per-request Google OAuth. The result is returned in a normalized bounded envelope.

Request Body

{
"jsonrpc": "2.0",
"id": "google-docs-insert-text-example",
"method": "tools/call",
"params": {
"name": "google.docs_insert_text",
"arguments": {
"document_id": "document_id_123",
"text": "text_example",
"index": 1
}
}
}

Arguments Schema

{
"type": "object",
"title": "docs_insert_textArguments",
"required": [
"document_id",
"text"
],
"properties": {
"text": {
"type": "string",
"title": "Text",
"description": "Text to insert or quick-add."
},
"index": {
"type": "integer",
"title": "Index",
"default": 1,
"description": "Google Docs structural insertion index."
},
"document_id": {
"type": "string",
"title": "Document Id",
"description": "Google Docs document ID."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the local or Google provider operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Bounded local navigation or Google provider result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe timing, pagination, cache, request, and truncation metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe structured error when ok is false."
}
},
"description": "Google MCP normalized operation envelope.",
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "google-docs-insert-text-example",
"method": "tools/call",
"params": {
"name": "google.docs_insert_text",
"arguments": {
"document_id": "document_id_123",
"text": "text_example",
"index": 1
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool google.docs_insert_text executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}