kb_get_preferences
Retrieve user preferences to personalize AI interactions and maintain context across sessions.
Instructions
Get user preferences
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:714-723 (handler)The tool handler that executes kb_get_preferences by calling km.getPreferences() and returning the JSON stringified result.case 'kb_get_preferences': { return { content: [ { type: 'text', text: JSON.stringify(km.getPreferences(), null, 2) } ] }; }
- src/index.ts:224-230 (schema)Tool registration including name, description, and input schema (empty object).name: 'kb_get_preferences', description: 'Get user preferences', inputSchema: { type: 'object', properties: {} } },
- src/KnowledgeManager.ts:340-342 (helper)KnowledgeManager.getPreferences() method that returns a copy of the stored preferences object.getPreferences(): Preferences { return { ...this.kb.preferences }; }