read_toc
Read all table of contents fields and cached entries from a Word document, including title, page number, and heading level. Ideal for extracting TOC data; refresh fields beforehand for current content.
Instructions
Read every TOC-family field (main TOC, List of Tables, List of Figures) and its cached entries: title, page number, heading level. The cached text reflects the state at last field update; refresh with com_refresh_fields (requires Word) then re-read. Use insert_toc/ insert_caption_list/delete_toc to manage TOCs. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||