format_text
Find and format specific text in a .docx file by applying character formatting changes like bold, italic, underline, font, size, color, or highlight to all matching runs.
Instructions
Apply character formatting (bold, italic, underline, highlight, font, size, color) to all runs matching the search 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>",
"search": "<search>"
},
"name": "format_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .docx file | |
| search | Yes | Text to find and format | |
| bold | No | Set bold (true/false) | |
| italic | No | Set italic (true/false) | |
| underline | No | Set underline (true/false) | |
| strikethrough | No | Set strikethrough (true/false) | |
| highlight_color | No | Highlight color: yellow, green, cyan, magenta, blue, red, etc. | |
| font_name | No | Font family name | |
| font_size | No | Font size in points (e.g. 12) | |
| font_color | No | Font color as hex (e.g. 'FF0000' for red) | |
| case_sensitive | No | Case-sensitive text matching |