refresh-sources
Manually refresh documentation sources to ensure access to current design system components, patterns, and layouts.
Instructions
Trigger manual refresh of documentation sources
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:147-160 (handler)The 'refresh-sources' tool registration and handler implementation.
server.tool( "refresh-sources", "Trigger manual refresh of documentation sources", {}, async () => { await sourceManager.refreshSources(); return { content: [ { type: "text", text: "Documentation sources refreshed successfully. Cache cleared and sources will be re-synced on next request.", }, ], - src/source-manager.ts:117-120 (helper)The refreshSources method within SourceManager that performs the actual cache clearing.
async refreshSources(): Promise<void> { this.cache = {}; this.lastRefresh = Date.now(); }