doc_outline
Build a token-bounded structural outline of a PDF to map sections and statements, get page calibration, and choose read-all or navigation routes before deeper reading.
Instructions
Build a token-bounded L0 structural outline of a PDF (<=1,500 tokens, zero LLM calls). Returns doc_id, page count, printed-to-physical page calibration, route_hint ('read_all' or 'navigate'), and zoomable section/statement headings. Call this first once per PDF.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "doc_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute or relative path to a PDF file inside allowed --root directories (required on first call if doc_id is omitted). | |
| depth | No | Heading granularity depth (1 = top-level sections & primary statements, 2–3 = finer subsections). | |
| doc_id | No | Opaque document handle returned by an earlier doc_outline call to avoid re-specifying path. | |
| max_items | No | Maximum outline items returned to keep token usage bounded. | |
| page_range | No | Optional [start_page, end_page] 1-based physical page bounds to zoom into a specific section. |