word_list_paragraphs
Lists body paragraphs from a Word document, returning index, style, text, and runs for each paragraph.
Instructions
Return one dict per body paragraph.
Each entry has index, style, text, and runs keys.
runs is itself a list of run dicts (see
:func:_serialise_run).
Args:
path: Path to an existing .docx.
folder: Optional base folder for relative paths.
Raises:
OfficeMCPError: ERR_FILE_NOT_FOUND if the file is missing,
ERR_UNSUPPORTED_FMT for non-.docx extensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |