docshelf_add_document
Add a PDF or Markdown file to a categorized document shelf. Automatically converts PDFs to Markdown, splits large documents by headings, and updates the navigation index.
Instructions
Add a PDF or Markdown file to the shelf and refresh INDEX.md.
.pdfis converted to Markdown (pymupdf4llmby default; passquality='high'to usemarker-pdf).Documents larger than 50 KB with multiple H2 headings are split into one file per section (turn this off with
split=False).INDEX.md is regenerated automatically. The caller still owns the git commit / push step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |