doc_sections
Build an index of bookmarks, contents, headings, table and figure captions with page numbers to locate and request only the relevant document sections.
Instructions
The document's index: its bookmarks, its contents page, the headings found in the text and every table and figure caption, each with its page. Ask this first, then doc_text with those pages or doc_page for the table: a datasheet lookup then costs the rows you need, not the pages around them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document id, library file name, title, or a path inside the workspace. | |
| find | No | Regular expression on the titles, e.g. 'pin|package'; omit for the whole index. | |
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | ||
| find | No | ||
| total | Yes | How many the document has before the filter and the cap. | |
| sections | Yes |