Read a PDF outline
pdf_outlineRead a PDF's table of contents as a flat list with titles, depth, and real page numbers to locate the section covering a topic, then read or render just those pages.
Instructions
Read a PDF's table of contents (bookmarks) as a flat list with real page numbers.
This is the navigation index for reading: each entry has a 1-based index, a depth
(1 = top level), its title, and the 1-based page it starts on. Use it to find the section
that covers a topic, then read or render just those pages.
Not every PDF has a usable outline — a scanned book often does, a print-to-PDF rarely does.
When total is 0, fall back to pdf_read or pdf_render_page over page ranges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last outline entry to return, inclusive. | |
| from | No | First outline entry to return, 1-based (default 1). | |
| path | Yes | Path to the PDF. | |
| max_depth | No | Only include entries at or above this depth (1 = top level only). |