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)

tools/call
{
  "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

NameTypeDescription
documentIdrequiredstringthe Google Docs document ID.
textrequiredstringText to insert. Include trailing '\n' to start a new paragraph.
indexintegera 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 }

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude