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.
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": {
"file_path": "<file_path>"
},
"name": "list_chapters"
}
}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 |