docs_insert_after
Insert a new paragraph immediately after the paragraph containing a specified text anchor in a Google Doc. Supports rich formatting or plain text insertion.
Instructions
Insert a new paragraph immediately after the paragraph containing anchor.
The anchor is matched case-insensitively as a substring of the paragraph.
Rich formatting is ON by default. Set rich=False to insert literal text.
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": {
"doc_id": "<doc_id>",
"anchor": "<anchor>",
"text": "<text>"
},
"name": "docs_insert_after"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rich | No | If True (default), interpret simple markdown-like formatting natively | |
| text | Yes | Text to insert as the new paragraph | |
| anchor | Yes | Text to search for to find the target paragraph | |
| doc_id | Yes | Google Doc ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |