list_docsets
List all installed documentation sets to view docset IDs, names, and installation details for quick reference and management.
Instructions
List all installed documentation sets (docsets). Shows docset IDs, names, and installation details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:336-344 (registration)Tool registration in ListToolsRequestSchema handler. Defines the 'list_docsets' tool with name, description, and empty input schema.
{ name: 'list_docsets', description: 'List all installed documentation sets (docsets). Shows docset IDs, names, and installation details.', inputSchema: { type: 'object', properties: {}, additionalProperties: false } }, - src/index.js:540-565 (handler)Handler for the 'list_docsets' tool in CallToolRequestSchema switch. Calls this.docsetService.listDocsets(), formats the list with name, ID, path, and installation date, or shows a message if none are installed.
case 'list_docsets': const docsets = await this.docsetService.listDocsets(); if (docsets.length === 0) { return { content: [{ type: 'text', text: 'No docsets installed yet.\n\nUse `add_docset` to install documentation sets for your frameworks and libraries.' }] }; } let output = `# Installed Documentation Sets\n\nFound ${docsets.length} docset(s):\n\n`; docsets.forEach((docset, index) => { output += `## ${index + 1}. ${docset.name}\n`; output += `**ID:** ${docset.id}\n`; output += `**Path:** ${docset.path}\n`; output += `**Installed:** ${new Date(docset.downloadedAt).toLocaleString()}\n\n`; }); return { content: [{ type: 'text', text: output }] }; - src/services/docset/index.js:334-336 (helper)The DocsetService.listDocsets() helper method. Returns an array of all docset metadata objects stored in the internal Map.
async listDocsets() { return Array.from(this.docsets.values()); }