docshelf_add_document
Add PDF or Markdown files to your docshelf: convert to Markdown, auto-split large docs by heading, and update INDEX.md automatically.
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).If a different title/category slugifies onto a path an existing document already occupies, the call errors instead of overwriting it — pass
overwrite=trueto replace it. Re-adding the same title updates in place. The response reportsoverwritten.The response
warningsinclude suspicious section headings and anempty-conversionwarning when the source yields little or no text (e.g. a scanned / image-only PDF — considerquality='high'/ OCR).INDEX.md is regenerated automatically. The caller still owns the git commit / push step.
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": {
"params": "<params>"
},
"name": "docshelf_add_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |