replace_paragraph
Replace a specific paragraph's text and formatting in a Word document, including font, bold, alignment, indent, and line spacing.
Instructions
替换指定段落的内容,并应用新的格式。
Args: file_path: 文档路径 paragraph_index: 要替换的段落索引 (0-based) new_text: 新的段落内容 font_name: 字体名称 font_size: 字号 (pt) is_bold: 是否加粗 alignment: 对齐方式 indent_first_line: 首行缩进字符数 line_spacing: 行距 (pt)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_bold | No | ||
| new_text | Yes | ||
| alignment | No | LEFT | |
| file_path | Yes | ||
| font_name | No | SimSun | |
| font_size | No | ||
| line_spacing | No | ||
| paragraph_index | Yes | ||
| indent_first_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |