word_delete_comment
Remove a comment from a Word document by specifying its unique comment ID. Deletes the comment and cleans up associated markers.
Instructions
Delete a comment from a Word document by comment ID.
Removes the comment from comments.xml and strips associated reference markers from document.xml.
Args: file_path: Path to the .docx file comment_id: Comment ID from word_get_comments output output_path: Optional output path (defaults to overwriting input)
Returns: Status dictionary with deletion details
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>",
"comment_id": "<comment_id>"
},
"name": "word_delete_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the .docx file | |
| comment_id | Yes | Comment ID from word_get_comments output | |
| output_path | No | Optional output path (defaults to overwriting input) |