Get DOCX contents
get_contents_from_docxRetrieve paginated paragraphs and tables from DOCX files. Loop with offset and limit until all content is fetched.
Instructions
Read a paginated batch of content blocks (paragraphs and tables) from a .docx file. Returns items, total, offset, limit, and has_more — loop with increasing offset until has_more is false. Blocks carry style name references only; use get_styles_from_docx for full style definitions.
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": {
"file_path": "<file_path>"
},
"name": "get_contents_from_docx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the .docx file. Provided by the MCP client in each tool call, not in server build or MCP host config. | |
| offset | No | Zero-based index of the first content block to return. | |
| limit | No | Maximum blocks per batch (1-200, default 10). |