PDF table of contents
pdf_tocExtracts a PDF's table of contents and section start pages from its outline or detected headings, so you can locate needed pages in long documents before converting them to Markdown.
Instructions
Table of contents of a PDF with the page where each section starts (from the PDF outline, else from detected headings). Use it on long PDFs (more than ~20 pages) to find the pages you need, then call pdf_to_markdown with "pages".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "pdf_toc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the PDF file: absolute, or relative to the server's working directory. | |
| password | No | Password of an encrypted PDF. Only when an error asks for it. |