add_formatted_paragraph
Append a paragraph with specified font, size, styling, alignment, indentation, and line spacing to a Word document.
Instructions
向文档追加带有特定样式的段落。支持设置中文字体(如宋体/黑体)。
Args: file_path: 文档路径 text: 段落内容 font_name: 字体名称 (默认 "SimSun" 即宋体, 可选 "Microsoft YaHei", "Times New Roman" 等) font_size: 字号 (pt) is_bold: 是否加粗 alignment: 对齐方式 ("LEFT", "CENTER", "RIGHT", "JUSTIFY") indent_first_line: 首行缩进字符数 (例如 2.0 代表缩进两个字符) line_spacing: 行距 (pt),例如 20.0 代表固定值20磅
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| is_bold | No | ||
| alignment | No | LEFT | |
| file_path | Yes | ||
| font_name | No | SimSun | |
| font_size | No | ||
| line_spacing | No | ||
| indent_first_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |