kb_get_custom
Retrieve custom knowledge from persistent storage by category, enabling AI agents to access structured personal and organizational information for informed responses.
Instructions
Get custom knowledge by category
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Category to retrieve (optional, returns all if not specified) |
Implementation Reference
- src/index.ts:736-747 (handler)MCP tool handler for kb_get_custom: extracts category from arguments, calls KnowledgeManager.getCustom(), and returns JSON string of results.case 'kb_get_custom': { const category = (args as any).category; const custom = km.getCustom(category); return { content: [ { type: 'text', text: JSON.stringify(custom, null, 2) } ] }; }
- src/index.ts:239-251 (schema)Tool schema definition including name, description, and input schema for kb_get_custom.{ name: 'kb_get_custom', description: 'Get custom knowledge by category', inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Category to retrieve (optional, returns all if not specified)' } } } },
- src/KnowledgeManager.ts:348-353 (helper)Core helper method in KnowledgeManager that filters and returns custom knowledge entries by optional category.getCustom(category?: string): CustomKnowledge[] { if (category) { return this.kb.custom.filter(k => k.category === category); } return [...this.kb.custom]; }