add_comment
Add comments or threaded replies to DOCX and ODT files, anchored to paragraphs or as replies to existing comments.
Instructions
Add a comment or threaded reply to a document. Provide target_paragraph_id + anchor_text for root comments, or parent_comment_id for replies. Supports DOCX and ODT (ODT backs comments with office:annotation; threaded replies are DOCX-only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the DOCX or ODT file. | |
| target_paragraph_id | No | Paragraph ID to anchor the comment to (for root comments). | |
| anchor_text | No | Text within the paragraph to anchor the comment to. If omitted, anchors to entire paragraph. | |
| parent_comment_id | No | Parent comment ID for threaded replies. | |
| author | Yes | Comment author name. | |
| text | Yes | Comment body text. | |
| initials | No | Author initials (defaults to first letter of author name). |