rebuild
Rebuild the text index on the Library MCP server to ensure accurate search results after changes to local markdown files. Sync content updates efficiently.
Instructions
Rebuild text index. Useful for when contents have changed on disk
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:458-467 (handler)The handler function for the "rebuild" MCP tool. It rebuilds the text index by reloading content from disk via content_manager.load_content(), returning True on success or False if content_manager is not initialized.@mcp.tool() async def rebuild() -> bool: """Rebuild text index. Useful for when contents have changed on disk""" if content_manager is None: return False debug_print("Rebuilding content index...") content_manager.load_content() debug_print("Content index rebuilt successfully") return True