kb_get_preferences
Retrieve stored user preferences to personalize interactions and maintain context across AI sessions.
Instructions
Get user preferences
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "kb_get_preferences"
}
}Input 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 }; }