get_toc
Extract a PDF's table of contents to get a hierarchical chapter outline with page numbers, enabling structured navigation before splitting into sections.
Instructions
Extract table of contents (bookmarks/outline) from a PDF. Returns hierarchical chapter structure with page numbers.
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": "get_toc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the PDF file |