get_pdf_outline
Extract the table of contents or outline structure from PDF files, returning hierarchical sections with titles and page references for document navigation.
Instructions
Extract the table of contents (TOC) or outline/bookmarks structure from a PDF file. Returns hierarchical or flattened list of document sections with titles, page references, and navigation structure. Use either absolute_path for any location or relative_path for files in ~/pdf-agent/ directory.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| absolute_path | No | Absolute path to the PDF file (e.g., '/Users/john/documents/report.pdf') | |
| relative_path | No | Path relative to ~/pdf-agent/ directory (e.g., 'reports/annual.pdf') | |
| use_pdf_home | No | Use PDF agent home directory for relative paths (default: true) | |
| include_destinations | No | Resolve internal destinations to page numbers when possible (default: true) | |
| max_depth | No | Maximum nesting depth to process (1-10). Optional - limits deep hierarchies | |
| flatten_structure | No | Return flat list instead of hierarchical tree structure (default: false) |