docshelf_add_directory
Adds all matching files from a directory into a category, regenerating INDEX.md once. Reports unreadable files without stopping the batch.
Instructions
Add every matching file in a directory, rebuilding INDEX.md once.
Scans source_dir (non-recursively) for patterns — every supported
input type by default (Markdown, PDF, DOCX, HTML, EPUB) — adds each under
category with a title derived from its filename, and regenerates
INDEX.md a single time. A corrupt or unreadable file is reported in
failed without aborting the batch.
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_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |