get_voice_pack_info
Retrieve details about active and available voice packs for coding achievement announcements, including names, descriptions, and paths.
Instructions
âšī¸ Get information about the currently active voice pack and all available voice packs. Returns the current voice pack name, display name, description, path, and list of all available voice packs (male and female) with their details.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _dummy | No | No parameters required. This tool returns information about voice packs without requiring any input. |
Implementation Reference
- index.js:840-851 (handler)The core handler function for the 'get_voice_pack_info' tool. It returns success status, message, current voice pack, current voice info, and list of all available voice packs.async getVoicePackInfo(args) { return { success: true, message: "đ¤ Voice pack information retrieved!", currentVoicePack: enhancedStats.voicePack, currentVoiceInfo: VOICE_PACKS[enhancedStats.voicePack], availableVoicePacks: Object.keys(VOICE_PACKS).map(key => ({ id: key, ...VOICE_PACKS[key] })) }; }
- index.js:389-396 (registration)Registration of the 'get_voice_pack_info' tool in the ListTools response, including name, description, and input schema.{ name: "get_voice_pack_info", description: "đ¤ Get current voice pack information and available options", inputSchema: { type: "object", properties: {}, }, },
- index.js:392-395 (schema)Input schema definition for the tool: an empty object since no parameters are required.inputSchema: { type: "object", properties: {}, },
- src/tools/settings.ts:83-97 (handler)Alternative handler implementation in the modular tools registration file, returning structured content with voice pack information.async () => { return { content: [{ type: "text", text: `đ¤ Current voice: ${enhancedStats.voicePack}\nAvailable voices: male, female` }], currentVoicePack: enhancedStats.voicePack, currentVoiceInfo: VOICE_PACKS[enhancedStats.voicePack], availableVoicePacks: Object.entries(VOICE_PACKS).map(([id, pack]) => ({ id, ...pack })) }; } );
- src/tools/settings.ts:67-82 (registration)Registration of the tool using server.registerTool in the settings module, including detailed description, Zod schema, and annotations.server.registerTool( "get_voice_pack_info", { description: "âšī¸ Get information about the currently active voice pack and all available voice packs. Returns the current voice pack name, display name, description, path, and list of all available voice packs (male and female) with their details.", inputSchema: { // No parameters required for this tool _dummy: z.string().optional().describe("No parameters required. This tool returns information about voice packs without requiring any input.") }, annotations: { title: "âšī¸ Get Voice Pack Info", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },