kb_get_preferences
Retrieve stored user preferences to personalize interactions and maintain context across AI sessions.
Instructions
Get user preferences
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:223-230 (registration)Registration of the kb_get_preferences tool in the tools array, defining name, description, and empty input schema.{ name: 'kb_get_preferences', description: 'Get user preferences', inputSchema: { type: 'object', properties: {} } },
- src/index.ts:714-723 (handler)MCP tool handler that executes kb_get_preferences by retrieving preferences via KnowledgeManager and returning as JSON-formatted text content.case 'kb_get_preferences': { return { content: [ { type: 'text', text: JSON.stringify(km.getPreferences(), null, 2) } ] }; }
- src/KnowledgeManager.ts:340-342 (helper)Core helper method returning a shallow copy of preferences from the internal knowledge base storage.getPreferences(): Preferences { return { ...this.kb.preferences }; }