diagnose_document
Run a read-only structural health check on Word .docx files: identifies content-type coverage, dangling relationships, broken cross-references, undefined styles, and size issues.
Instructions
Produce a one-call structural health report, read-only: content-type coverage, dangling relationships and orphan parts, field balance per story part, footnote/endnote integrity, references to undefined styles and numbering, content-control and bookmark sanity, duplicate revision ids, missing image targets, broken cross-references, and a per-part size profile. Never fails on a weird-but-openable document; every check degrades to a reported problem, and ok=false only for problems that render broken or lose content in Word. The deep companion to validate_document's quick check.
No live mode BY DESIGN: this reads the saved package's XML, stale while Word holds unsaved changes. Close the document first (com_close_open_document saves and closes), or use com_validate_opens_clean / live get_document_info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||