list_chapters
View detected chapters and sections in a PDF with titles, page ranges, and estimated line counts. Uses the table of contents when available, otherwise identifies sections by page boundaries.
Instructions
List chapters/sections detected from the PDF. Uses TOC if available, otherwise splits by pages. Returns chapter index, title, page range, and estimated line count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Max TOC depth level to include (0=top level only). Omit for top-level chapters. | |
| file_path | Yes | Absolute path to the PDF file |