insert_doc_text
Insert text at a specific index.
writeGoogle Sheets, Docs & Drive
If index is null/omitted, append to end.
Call it
In an AI client (MCP)
{
"name": "insert_doc_text",
"arguments": {
"documentId": "<documentId>",
"text": "<text>"
}
}From code (Tool API)
curl -X POST https://api.sellersheetai.com/api/v1/tools/insert_doc_text \
-H "Authorization: Bearer $SELLERSHEET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"documentId":"<documentId>","text":"<text>"}'Early access — the Tool API is open on request, contact us.
Arguments
| Name | Type | Description |
|---|---|---|
documentIdrequired | string | the Google Docs document ID. |
textrequired | string | Text to insert. Include trailing '\n' to start a new paragraph. |
index | integer | a 1-based body index from find_doc_text or get_doc; it must fall inside an existing paragraph (not at a table's start index). Omit to append at the end — the same as append_doc_text. |
Result
Every tool answers {notification, data, human_action}; data carries:
- { inserted: true, chars: N }