word_count
Count words, characters, and paragraphs in Word documents, both overall and per heading section. Get live counts from open documents or file-based totals.
Instructions
Count words/characters/paragraphs, total and per heading section. Documents open in Word are counted live via Word's own statistics engine (ComputeStatistics, the status-bar number); file mode counts whitespace tokens, so the two can differ by a few words on identical content. Live per-section counts are best-effort mirrors of the file-mode logic. For journal counts that exclude references, captions, or other zones, use word_count_with_exclusions. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | auto | |
| file_path | Yes | ||
| by_section | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||