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.
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 |