Add Styled Paragraph to Document
add_paragraph_to_documentAppend a styled Arabic or English paragraph to a Word document with control over font, size, RTL direction, kashida justification, and line spacing.
Instructions
Appends a styled Arabic or English paragraph to a Word document with font, size, RTL, kashida justification, and line spacing.
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_paragraph_to_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | Bold weight | |
| text | Yes | Paragraph text content | |
| italic | No | Italic style | |
| colorHex | No | Text hex color | 000000 |
| filePath | Yes | Path to .docx file | |
| alignment | No | Paragraph alignment | right |
| direction | No | Text direction | rtl |
| underline | No | Underline style | |
| fontFamily | No | Font name (e.g. Amiri, Traditional Arabic, Cairo) | |
| fontSizePt | No | Font size in pt | |
| spaceAfterPt | No | Space after in pt | |
| spaceBeforePt | No | Space before in pt | |
| lineSpacingMultiplier | No | Line spacing multiplier |