insert_numbered_list_near_text
Insert a numbered list before or after a specific paragraph in a Word document using text or paragraph index. Ideal for precise content organization and formatting.
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"
}