insert_list
Insert bulleted or numbered lists into Word documents with custom nesting, numbering formats, and insertion points. Continue existing lists or restart numbering at a chosen value.
Instructions
Insert a bulleted or numbered list with real bullet/number glyphs (numbering.xml as needed). items: strings or {text, level} dicts (level 0-8 nests); kind: bullet | number. A call makes its own list, so numbering restarts at 1; continue_from (a num_id from list_elements) carries on an existing one and start_at restarts the new one at N. levels sets per-level formats: [{level, format, text, start, suffix, align, indent_pt, hanging_pt, font}], format one of decimal | lowerLetter | upperLetter | lowerRoman | upperRoman | bullet | none, text a label like '%1.%2.'. location picks the insertion point (omit for document end). Auto-backup to .ks4w-backups; atomic validated save. Refuses documents open in Word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | bullet | |
| items | Yes | ||
| backup | No | ||
| levels | No | ||
| location | No | ||
| start_at | No | ||
| file_path | Yes | ||
| continue_from | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||