docs_insert_text
Insert text into a Google Doc at a specified character position, including headers or footers by segment ID.
Instructions
Insert text into a Google Doc at a specified position
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": {
"documentId": "<documentId>",
"text": "<text>"
},
"name": "docs_insert_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to insert | |
| index | No | Character index to insert at (default: 1, start of doc) | |
| segmentId | No | Segment ID for headers/footers (omit for body) | |
| documentId | Yes | The Google Doc document ID |