insert_line_or_paragraph_near_text
Add a new line or paragraph with specified or matched style before or after a target paragraph in a Word document. Use text or paragraph index for precise placement. Simplify document editing with structured inputs.
Instructions
Insert a new line or paragraph (with specified or matched style) before or after the target paragraph. Specify by text or paragraph index. Args: filename (str), target_text (str, optional), line_text (str), position ('before' or 'after'), line_style (str, optional), target_paragraph_index (int, optional).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| line_style | No | ||
| line_text | No | ||
| position | No | after | |
| target_paragraph_index | No | ||
| target_text | No |