apply_hwp_text_style
Format specific text in HWP files by applying color, bold, italic, underline, or font size to the first occurrence of target text.
Instructions
Apply formatting (color/bold/italic/underline/font_size) to the first run that contains target_text. Adds a new charPr to header.xml and retargets the matching hp:run. Color is a 6-digit hex (e.g. 'FF0000'). Args: file_path, target_text, color/bold/italic/underline/font_size (any subset), output_path (optional).
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>",
"target_text": "<target_text>"
},
"name": "apply_hwp_text_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| target_text | Yes | ||
| color | No | ||
| bold | No | ||
| italic | No | ||
| underline | No | ||
| font_size | No | ||
| output_path | No |