# insert_doc_text (https://sellersheetai.com/docs/mcp-api/tools/insert_doc_text)

> Insert text at a specific index.

Access: **WRITE** · toolset google_workspace · family null

If index is null/omitted, append to end.

## Call it

MCP tool call:

```json
{
  "name": "insert_doc_text",
  "arguments": {
    "documentId": "<documentId>",
    "text": "<text>"
  }
}
```

Tool API (early access — contact us):

```bash
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>"}'
```

## Arguments

| Name | Type | Required | Description |
|---|---|---|---|
| `documentId` | string | yes | the Google Docs document ID. |
| `text` | string | yes | 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

- { inserted: true, chars: N }