Index a document by section
distill_outlineIndex a local document into a table of contents with line ranges, page numbers and token counts, so you can read only the sections you need with distill_file. Read-only; never modifies or uploads the file.
Instructions
Index one local document (same formats as distill_file) without reading it: a table of contents with line ranges, page numbers and token counts per section. Read-only: never modifies or uploads the file. Call it first for long documents, then read only what you need with distill_file using section or offset/limit. Line numbers refer to the converted Markdown, not to the original file. Small and unstructured documents get a single entry. Pages listed in visualPages contain charts or images that are not in the text; if the question depends on them, view the original page with distill_page_image. visualPages[].page is the physical page number (1-based position in the PDF); label is the printed page label, only present when it differs. Fails like distill_file (password_protected, needs_libreoffice, forbidden, too_large over 100 MB for documents, 2 GB for audio and video, parse_failed).
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": "distill_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path, or relative to the server's working directory | |
| lingua | No | Optional LLMLingua-2 compression, lossy: it removes words. Only works when installed (see distill_capabilities); avoid it for contracts and other exact text | |
| boosters | No | Lossless cleanups to apply, default all: dedupe (repeated headers and footers), media (shorter image paths and link URLs), tables (removes padding), ws (collapses whitespace). Pass a subset to keep, for example, link URLs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| note | No | ||
| lines | Yes | ||
| pages | Yes | ||
| tokens | Yes | ||
| entries | Yes | ||
| outline | Yes | ||
| visualPages | No |