get_sections
Retrieve a PDF's table of contents and numbered section headings in document order to understand its structure before reading or searching specific sections.
Instructions
Get the table of contents (section headings) of a document.
Use this to understand a document's structure before diving in.
Returns numbered section titles in document order. Then use read_section
to read any section, or search_in_doc to search within the document.
Get valid filenames from list_docs first.
Args:
filename: The PDF filename (e.g., 'manual.pdf').
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": {
"filename": "<filename>"
},
"name": "get_sections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |