kb_onboard
Collect initial user information through interactive questions to establish personalized context for AI agents, supporting categories like professional details and preferences.
Instructions
Start interactive onboarding to collect initial information. Returns questions for the specified category.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Category of questions to ask | all |
Implementation Reference
- src/index.ts:49-63 (schema)Tool schema definition for kb_onboard, specifying name, description, and input schema with category parameter.{ name: 'kb_onboard', description: 'Start interactive onboarding to collect initial information. Returns questions for the specified category.', inputSchema: { type: 'object', properties: { category: { type: 'string', enum: ['initial', 'professional', 'preferences', 'projects', 'all'], description: 'Category of questions to ask', default: 'all' } } } },
- src/index.ts:468-502 (handler)Handler implementation for kb_onboard tool: retrieves onboarding questions based on the specified category and returns structured JSON response with questions list.case 'kb_onboard': { const category = (args as any).category || 'all'; let questions: any[] = []; if (category === 'all') { questions = [ ...onboardingForms.initial, ...onboardingForms.professional, ...onboardingForms.preferences, ...onboardingForms.projects ]; } else if (onboardingForms[category as keyof typeof onboardingForms]) { questions = onboardingForms[category as keyof typeof onboardingForms]; } return { content: [ { type: 'text', text: JSON.stringify({ category, totalQuestions: questions.length, questions: questions.map(q => ({ id: q.id, question: q.question, type: q.type, field: q.field, required: q.required, options: q.options })) }, null, 2) } ] }; }