insert_numbered_list_near_text
Add a numbered list before or after a specific paragraph in a Word document by text or paragraph index. Simplify document formatting with precise placement.
Instructions
Insert a numbered list before or after the target paragraph. Specify by text or paragraph index. Args: filename (str), target_text (str, optional), list_items (list of str), position ('before' or 'after'), target_paragraph_index (int, optional).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filename | Yes | ||
list_items | No | ||
position | No | after | |
target_paragraph_index | No | ||
target_text | No |
Input Schema (JSON Schema)
{
"properties": {
"filename": {
"title": "Filename",
"type": "string"
},
"list_items": {
"default": null,
"items": {},
"title": "List Items",
"type": "array"
},
"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"
}