docshelf_add_directory
Add every matching file in a directory to a shelf category, rebuilding INDEX.md once. Supports Markdown, PDF, DOCX, HTML, and EPUB.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |