Add Heading to Document
add_heading_to_documentAdd a styled heading (H1-H6) to a Word document with custom font, size, color, alignment, and RTL direction support.
Instructions
Appends a styled Heading (H1-H6) to a Word document with custom font size, color, alignment, and RTL support.
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": {
"filePath": "<filePath>",
"text": "<text>"
},
"name": "add_heading_to_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Heading text | |
| level | No | Heading level 1-6 | |
| colorHex | No | Text color hex | 1F4E78 |
| filePath | Yes | Path to .docx file | |
| alignment | No | Alignment | right |
| direction | No | Text direction | rtl |
| fontFamily | No | Font name | |
| fontSizePt | No | Font size in pt |