add_comment
Insert a comment or threaded reply into a Word document by specifying the paragraph and anchor text for a root comment, or a parent comment ID for a reply.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the DOCX 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). |