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
Name | Required | Description | Default |
---|---|---|---|
filename | Yes | ||
line_style | No | ||
line_text | No | ||
position | No | after | |
target_paragraph_index | No | ||
target_text | No |
Input Schema (JSON Schema)
{
"properties": {
"filename": {
"title": "Filename",
"type": "string"
},
"line_style": {
"default": null,
"title": "Line Style",
"type": "string"
},
"line_text": {
"default": null,
"title": "Line Text",
"type": "string"
},
"position": {
"default": "after",
"title": "Position",
"type": "string"
},
"target_paragraph_index": {
"default": null,
"title": "Target Paragraph Index",
"type": "integer"
},
"target_text": {
"default": null,
"title": "Target Text",
"type": "string"
}
},
"required": [
"filename"
],
"type": "object"
}