library_scan
Scan a local directory recursively for EPUB and PDF files, registering them in a sidecar catalog for document access. Run after server restart before using document ID tools.
Instructions
Scan a local root recursively for EPUB/PDF documents and register them in one root sidecar catalog at /.mcp-ebook-read. If root is omitted, the MCP process project root is used. Use this before doc_id-only tools after a fresh server restart. Returns scan_performance so agents can see candidate counts, hash workers, and scan timing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "library_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | ||
| patterns | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||