list_sections
Discover available documentation sections to navigate Tambo technical content. Use this tool to identify and access specific documentation areas for efficient information retrieval.
Instructions
Dynamically discover and list all available documentation sections
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/doc-handler.ts:183-218 (handler)The handler function that executes the 'list_sections' tool logic: lists discovered documentation sections grouped by category after ensuring they are loaded.async listSections(): Promise<CallToolResult> { await this.ensureSectionsLoaded(); if (this.sections.length === 0) { return { content: [ { type: 'text', text: 'No documentation sections discovered. Try running discover_docs first.', }, ], }; } const grouped = this.sections.reduce((acc, section) => { const category = section.category || 'Other'; if (!acc[category]) acc[category] = []; acc[category].push(section); return acc; }, {} as Record<string, DocSection[]>); const output = Object.entries(grouped) .map(([category, sections]) => `## ${category}\n${sections.map(s => `• **${s.title}** - ${s.path}`).join('\n')}` ) .join('\n\n'); return { content: [ { type: 'text', text: `Available documentation sections (${this.sections.length} total):\n\n${output}`, }, ], }; }
- src/server.ts:64-70 (registration)Registration of the 'list_sections' tool in the ListTools response, including name, description, and empty input schema.name: 'list_sections', description: 'Dynamically discover and list all available documentation sections', inputSchema: { type: 'object', properties: {}, }, },
- src/server.ts:92-93 (registration)Tool dispatch/execution routing for 'list_sections' in the CallToolRequest handler, delegating to DocHandler.listSections().case 'list_sections': return await this.docHandler.listSections();