get_document_structure
Extract a document's hierarchical outline—headers, sections, and page references—to locate relevant parts before reading specific pages. Ideal for documents over 20 pages.
Instructions
Extract a document's hierarchical outline (headers, sections, page references). REQUIRED for documents over 20 pages — call this first to locate relevant sections, then pass their page numbers to get_page_content(). Use the part parameter to iterate large outlines until pagination.has_more is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | Part number for pagination (1-based, default 1). For large outlines, increment until the response's `pagination.has_more` becomes false. | |
| doc_name | Yes | Copy the `name` field verbatim from a browse_documents() or search_documents() response (case-sensitive, include extension). Example: "Q3 Report.pdf". If the response shows two documents with the same name, pass `folder_id` alongside to disambiguate. | |
| folder_id | No | ||
| wait_for_completion | No | If true and document is processing, automatically wait up to 3 minutes until completed. Reduces repeated tool calls. |