refresh_documentation
Reload all project documentation from disk to synchronize with external updates, providing AI assistants with current documentation.
Instructions
Reload all project documentation from disk when docs are updated externally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:291-298 (registration)The 'refresh_documentation' tool is registered in the ListToolsRequestSchema handler with its input schema (empty object, no parameters required) and description.
name: 'refresh_documentation', description: 'Reload all project documentation from disk when docs are updated externally.', inputSchema: { type: 'object', properties: {}, additionalProperties: false } }, - src/index.js:601-610 (handler)The tool handler implementation: calls this.docService.reload() to reload all documentation from disk, then returns a success message with the file count and timestamp.
case 'refresh_documentation': await this.docService.reload(); const docCount = this.docService.documents.size; return { content: [{ type: 'text', text: `ā Documentation refreshed successfully!\n\n**Files indexed:** ${docCount}\n**Last updated:** ${new Date().toLocaleString()}\n\nš” All manually added files should now be available for search and reading.` }] }; - The reload() method in DocumentationService clears the documents map and calls loadDocuments() to re-read all documentation files from disk.
async reload() { this.documents.clear(); this.lastScanned = null; await this.loadDocuments(); }