get_document_toc
Lists headings with line numbers to create a table of contents, helping you navigate and locate specific sections in a document.
Instructions
Returns the heading structure of a document as a
table of contents with line numbers.
Use this tool when you need to:
- Understand the structure of a large document
- Find specific sections before reading them
- Navigate a document by its headings
Line numbers in the output can be used with
read_document(offset=...) or
read_document_section(heading=...) to read specific
parts.
Args:
document_id: The document ID
Returns:
Formatted table of contents with line numbers
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |