smart_status
Check if AI-powered features like semantic search and document summarization are enabled and view index statistics in Outline Wiki.
Instructions
Check if smart features are enabled and get index statistics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/lib/handlers/smart.ts:209-219 (handler)The smart_status handler function that fetches brain statistics and returns enabled status, indexed chunks count, and a status message.
async smart_status() { const stats = await brain.getStats(); return { enabled: stats.enabled, indexedChunks: stats.chunks, message: stats.enabled ? `Smart features are enabled with ${stats.chunks} indexed chunks.` : ERROR_MESSAGES.SMART_FEATURES_DISABLED, }; }, - src/lib/schemas.ts:168-168 (schema)Zod input schema for smart_status tool, which requires no parameters (empty object).
export const smartStatusSchema = z.object({}); - src/lib/tools.ts:230-234 (registration)MCP tool definition registration for smart_status, including name, description, and schema reference.
createTool( 'smart_status', 'Check if smart features are enabled and get index statistics.', 'smart_status' ), - src/lib/handlers/index.ts:19-27 (registration)Handler registration where createSmartHandlers (including smart_status) is spread into the main all-handlers object.
export function createAllHandlers(ctx: AppContext): ToolHandlers { return { ...createSearchHandlers(ctx), ...createDocumentHandlers(ctx), ...createCollectionHandlers(ctx), ...createCommentHandlers(ctx), ...createBatchHandlers(ctx), ...createSmartHandlers(ctx), } as ToolHandlers;