split_document
Split an open Word document into multiple DOCX files, one per heading section, to extract and process each section independently.
Instructions
Split the open document into multiple DOCX files, one per heading section.
Args: output_dir: Directory for output files. Defaults to /split_output. at_heading_level: Heading level to split on (default 1).
Returns: {"output_dir": str, "files": list[str], "parts": int}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | ||
| at_heading_level | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |