list_presets
Browse available audio processing presets for game, voice, music, and effects categories to optimize audio files with FFmpeg configurations.
Instructions
List all available audio processing presets with their descriptions
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Filter presets by category |
Implementation Reference
- src/tools/index.ts:564-578 (handler)Handler logic for 'list_presets' tool within the main tool dispatcher. Imports utilities from presets.js and returns JSON list of presets, filtered by category if provided.case 'list_presets': { const { listPresets, getPresetsByCategory } = await import('../utils/presets.js'); const category = (args as any)?.category; const presets = category ? getPresetsByCategory(category) : listPresets(); return { content: [ { type: 'text', text: JSON.stringify(presets, null, 2) } ] }; }
- src/tools/index.ts:172-186 (schema)Tool definition including name, description, and input schema for optional category filter.export const listPresetsTool: Tool = { name: 'list_presets', description: 'List all available audio processing presets with their descriptions', inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Filter presets by category', enum: ['game', 'voice', 'music', 'effects'], optional: true } } } };
- src/tools/index.ts:736-736 (registration)Registration of listPresetsTool in the exported tools array used for listing available tools.listPresetsTool,
- src/utils/presets.ts:296-298 (helper)Core helper function that returns all preset definitions from the PRESETS object.export function listPresets(): PresetDefinition[] { return Object.values(PRESETS); }
- src/utils/presets.ts:317-341 (helper)Helper function to filter presets by category, used when category is provided in tool input.export function getPresetsByCategory(category: 'game' | 'voice' | 'music' | 'effects'): PresetDefinition[] { const gamePresets = ['game-audio-mobile', 'game-audio-desktop', 'game-audio-console']; const voicePresets = ['elevenLabs-optimize', 'voice-processing']; const musicPresets = ['music-mastering']; const effectsPresets = ['sfx-optimization']; let presetNames: PresetName[] = []; switch (category) { case 'game': presetNames = gamePresets as PresetName[]; break; case 'voice': presetNames = voicePresets as PresetName[]; break; case 'music': presetNames = musicPresets as PresetName[]; break; case 'effects': presetNames = effectsPresets as PresetName[]; break; } return presetNames.map(name => PRESETS[name]); }