insert_paragraph
Insert a paragraph before or after a specified paragraph ID in DOCX, ODT, or Google Docs, with native tracked changes.
Instructions
Insert a paragraph before/after an anchor paragraph by paragraph id. Supports DOCX, ODT, and Google Docs. (ODT paragraph ids are positional and shift after insertion — re-read before further edits.) Surface: revisionable — DOCX insertions emit native OOXML tracked changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | ||
| file_path | No | Path to the DOCX or ODT file. | |
| new_string | Yes | ||
| instruction | Yes | ||
| google_doc_id | No | Google Doc ID or URL (alternative to file_path). Extract from URL: docs.google.com/document/d/{ID}/edit | |
| style_source_id | No | Paragraph _bk_* ID to clone formatting (pPr and template run) from instead of the positional anchor. Falls back to anchor with a warning if not found. | |
| positional_anchor_node_id | Yes |