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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "word_list_paragraphs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |