get_toc_tree
Retrieve a nested table of contents tree per document, showing parent and child heading relationships without content. Use it to navigate docs by section and locate headings without reading full files.
Instructions
Get a nested table of contents tree per document. Shows parent/child heading relationships. Content is excluded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier (owner/repo or just repo name) | |
| limit | No | v1.147+ — return at most this many documents (a document's tree is never split), starting at offset. Default: all, subject to the response ceiling (JDOCMUNCH_RESPONSE_MAX_BYTES, 1 MiB), over which the call is refused, never truncated. documents_total, documents_truncated and next_offset are always present. | |
| offset | No | v1.147+ — documents to skip. Pass the previous response's next_offset. Default 0. | |
| path_glob | No | v1.36+ — fnmatch glob restricting results to matching doc_paths. Default: no filter. |