smart_status
Check if AI-powered features like RAG-based Q&A, semantic search, and document summarization are enabled and view index statistics for the Outline wiki.
Instructions
Check if smart features are enabled and get index statistics.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/lib/handlers/smart.ts:209-219 (handler)The handler function for the 'smart_status' tool. It retrieves statistics from the brain module and returns whether smart features are enabled along with the number of indexed chunks 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 schema definition for the 'smart_status' tool input, which takes no parameters (empty object).export const smartStatusSchema = z.object({});
- src/lib/schemas.ts:250-250 (schema)Inclusion of the smartStatusSchema in the central toolSchemas map used for tool registration.smart_status: smartStatusSchema,
- src/lib/tools.ts:230-234 (registration)Registration of the 'smart_status' tool in the allTools array, converting the Zod schema to JSON schema for MCP tool definition, including name, description, and input schema.createTool( 'smart_status', 'Check if smart features are enabled and get index statistics.', 'smart_status' ),