word_get_info
Retrieve paragraph, section, table, and image counts and core properties (title, author) from a .docx file.
Instructions
Return counts and core properties of a .docx file.
The returned dict contains:
paragraphs— number of body paragraphs (including the empty one emitted by :func:docx.Document).sections— number of sections in the document.tables— number of body tables.images— number of inline shapes (images).properties— subset ofcore_properties(title,author) that are populated.
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 if the extension is not .docx,
ERR_INVALID_PARAMS if path is empty.
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_get_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||