clear_formatting
Remove bold, italic, underline, highlight, color, and font formatting from paragraphs in DOCX files. Changes are trackable with revision marks.
Instructions
Clear specific run-level formatting (bold, italic, underline, highlight, color, font) from paragraphs. Surface: revisionable — clearing emits a native run-property-change revision (w:rPrChange).
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>"
},
"name": "clear_formatting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the DOCX or ODT file. | |
| clear_bold | No | Remove bold formatting. | |
| clear_font | No | Remove font family and size. | |
| clear_color | No | Remove font color. | |
| clear_italic | No | Remove italic formatting. | |
| paragraph_ids | No | Paragraph IDs to clear formatting from. If omitted, clears from all paragraphs. | |
| clear_highlight | No | Remove highlight formatting. | |
| clear_underline | No | Remove underline formatting. |