add_comment
Add a comment to specific text in a Word document. Attach comments to the first occurrence of chosen anchor text with author and content.
Instructions
Add a comment to specific text in the document. The comment is anchored to the first occurrence of the anchor 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": {
"file_path": "<file_path>",
"anchor_text": "<anchor_text>",
"comment_text": "<comment_text>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .docx file | |
| anchor_text | Yes | Text to attach the comment to (must exist in the document) | |
| comment_text | Yes | The comment content | |
| author | No | Comment author name | Claude |