PDF to mind map
pdf_to_mindmapConvert a local PDF into a mind-map outline, using bookmarks as the skeleton when available. Limit pages for long documents; image-only scanned PDFs are rejected.
Instructions
Read a local PDF and turn it into a mind-map outline, using its bookmarks as the skeleton when it has them. Scanned PDFs with no text layer are rejected — there is no OCR. Use pages to limit long documents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto (default): use a configured API key if there is one, otherwise "client". client: get a draft plus the source text back and write the outline yourself. llm: the server calls the model configured by ANTHROPIC_API_KEY / OPENAI_API_KEY. heuristic: rule-based only, no model. | |
| path | Yes | Path to a local PDF file. "~" is expanded. | |
| pages | No | Page selection, 1-based, e.g. "1-20", "3" or "1-5,9". All pages by default. | |
| title | No | Root node title. Derived from the source if omitted. | |
| export | No | Also render the outline to a standalone HTML file and return its path. | |
| language | No | Language for the node labels, e.g. "English" or "中文". Defaults to the source language. | |
| maxDepth | No | Levels including the root (default 4). | |
| outputPath | No | Where to write the HTML when export is true. A directory gets a generated file name. Defaults to $MINDMAP_OUTPUT_DIR or ./mindmaps/. | |
| maxChildren | No | Children kept per node before the rest collapse into "…(+N)" (default 8). |